Lines Matching refs:Url
28 * Class Url
34 class Url extends PathAbs
106 * Note: Url validation is hard with regexp
160 public static function createEmpty(): Url
162 return new Url();
168 public static function createFromGetOrPostGlobalVariable(): Url
177 $url = Url::createEmpty();
201 * with {@link Url::AMPERSAND_URL_ENCODED_FOR_HTML}
276 public static function createFromString(string $url): Url
278 return new Url($url);
298 public function setPath(string $path): Url
330 public function addQueryParameter(string $key, ?string $value = null): Url
369 * @return Url - add the scheme and the host based on the request if not present
371 public function toAbsoluteUrl(): Url
405 * @return string - utility function that call {@link Url::toAbsoluteUrl()} absolute and {@link Url::toString()}
469 public function equals(Url $expectedUrl)
541 public function setScheme(string $scheme): Url
547 public function setHost($host): Url
558 public function setFragment(string $fragment): Url
567 public function getQueryString($ampersand = Url::AMPERSAND_CHARACTER): string
675 function getParent(): Url
695 function toAbsolutePath(): Url
700 function resolve(string $name): Url
721 public function toString(string $ampersand = Url::AMPERSAND_CHARACTER): string
781 * Url Rewrite
850 * @return Url
852 public function addQueryParameterIfNotActualSameValue(string $key, string $value): Url
867 function getUrl(): Url
874 return $this->toString(Url::AMPERSAND_URL_ENCODED_FOR_HTML);
899 * @return Url
901 public function setQueryParameter(string $key, string $value): Url
936 $localHost = Url::createEmpty()->setPath("/")->toAbsoluteUrl()->getHost();
966 return new Url($uri);
969 public function deleteQueryProperties(): Url
975 public function withoutRewrite(): Url