Lines Matching full:url

5 use ComboStrap\Web\Url;  alias
11 * Basically, a class that parse a link/media markup reference and returns an URL.
16 * and returns an {@link MarkupRef::getUrl() URL},
20 * For a {@link MarkupRef::WIKI_URI}, the URL returned is:
21 * * a {@link UrlEndpoint::createFetchUrl() fetch url} for a media
22 * * a {@link UrlEndpoint::createDokuUrl() doku url} for a link (ie page)
64 private ?Url $url = null; variable in ComboStrap\\MarkupRef
80 $this->url = Url::createEmpty();
101 $this->url = Url::createFromString("mailto:$email");
104 $this->url = Url::createFromString("mailto:$ref");
110 * Case when the URL is just a full conform URL
122 $this->url = Url::createFromString($ref);
129 if (!in_array($this->url->getScheme(), $authorizedSchemes)) {
130 …throw new ExceptionBadSyntax("The scheme ({$this->url->getScheme()}) of the URL ({$this->url}) is …
133 $isImage = FileSystems::getMime($this->url)->isImage();
138 $properties = $this->url->getQueryProperties();
149 $this->url->addQueryParameter(Dimension::WIDTH_KEY, $width);
152 $this->url->addQueryParameter(Dimension::HEIGHT_KEY, $height);
155 $this->url->addQueryParameter(Dimension::WIDTH_KEY, $width);
157 $this->url->deleteQueryParameter($widthAndHeight);
158 if ($this->url->hasProperty(MediaMarkup::LINKING_NOLINK_VALUE)) {
159 … $this->url->addQueryParameter(MediaMarkup::LINKING_KEY, MediaMarkup::LINKING_NOLINK_VALUE);
160 $this->url->deleteQueryParameter(MediaMarkup::LINKING_NOLINK_VALUE);
169 …throw new ExceptionBadSyntax("The url string was not validated as an URL ($ref). Error: {$e->getMe…
178 $this->url = LocalPath::createFromPathString($ref)->getUrl();
192 $this->url = Url::createEmpty()->setFragment($fragment);
215 $this->url = $this->interWiki->toUrl();
258 * The URL
263 $this->url = UrlEndpoint::createFetchUrl();
266 $this->url = UrlEndpoint::createDokuUrl();
286 $rev = $this->url->getQueryPropertyValue(WikiPath::REV_ATTRIBUTE);
296 … $this->url->addQueryParameter(MediaMarkup::$MEDIA_QUERY_PARAMETER, $this->path->getWikiId());
300 $this->url->setFragment($fragment);
334 … $this->url->addQueryParameter(DokuwikiId::DOKUWIKI_ID_ATTRIBUTE, $this->path->getWikiId());
339 $this->url->setFragment($fragment);
443 function getUrl(): Url
445 return $this->url;
485 $this->url->addQueryParameter(WikiPath::REV_ATTRIBUTE, $rev);
532 $this->url->addQueryParameter(Dimension::WIDTH_KEY, $sizing[1]);
534 $this->url->addQueryParameter(Dimension::HEIGHT_KEY, $sizing[2]);
549 $this->url->addQueryParameter(MediaMarkup::LINKING_KEY, $linkingValue);
563 $this->url->addQueryParameter(IFetcherAbs::CACHE_KEY, $noCacheValue);
575 $this->url->setFragment(substr($token, 1));
600 $this->url->setFragment(substr($key, $anchorPosition + 1));
646 $this->url->setFragment(substr($value, $anchorPosition + 1));
652 $this->url->addQueryParameter(Dimension::WIDTH_KEY, $value);
655 $this->url->addQueryParameter(Dimension::HEIGHT_KEY, $value);
658 $this->url->addQueryParameter($key, $value);