Lines Matching defs:url

32  * https://www.php.net/manual/en/ref.url.php
67 const CANONICAL = "url";
81 * @var string - original url string
83 private $url;
96 public function __construct(string $url = null)
99 $this->url = $url;
101 if ($this->url !== null) {
109 * - does not pass return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);
110 * of preg_match('/^https?:\/\//',$url) ? from redirect plugin
115 $urlComponents = parse_url($url);
117 throw new ExceptionBadSyntax("The url ($url) is not valid");
133 throw new ExceptionBadArgument("The port ($port) in ($url) is not an integer. Error: {$e->getMessage()}");
147 * A text to an encoded url
177 $url = Url::createEmpty();
184 LogUtility::warning("The key ($key) is an array of an array and was not taken into account in the request url.");
191 $url->addQueryParameter($key, $subkey);
194 $url->addQueryParameter($key, $subval);
200 * In the `src` attribute of `script`, the url should not be encoded
210 $message = "The url in src has a bad encoding (the attribute ($key) has a amp; prefix. Infinite cache will not work. Request: " . DataType::toString($_REQUEST);
214 LogUtility::warning($message, "url");
224 $url->addQueryParameter($key, $value);
227 return $url;
231 * Utility class to transform windows separator to url path separator
276 public static function createFromString(string $url): Url
278 return new Url($url);
375 * If not, this is a local url (ie #id)
511 throw new ExceptionNotEquals("The expected url does not have the $key property");
589 * The url may also be used elsewhere where & is unknown or not wanted such as css ...
591 * In test, we may ask the url HTML encoded
914 * @return string - An url in the DOM use the ampersand character
930 * @return bool - if the url points to the same website than the host
935 // We set the path, otherwise it's seen as a local url
939 // no host meaning that the url is relative and then local
945 * In a url, in a case, the path should be absolute