65 if ($this->default_port == $uri->port) {
70 if (!$this->may_omit_host &&
72 (!is_null($uri->scheme) && ($uri->host ===
'' || is_null($uri->host))) ||
76 (is_null($uri->scheme) && $uri->host ===
'')
79 if (is_null($uri->scheme)) {
80 if (substr($uri->path, 0, 2) !=
'//') {
89 $host =
$config->get(
'URI.Host');
90 if (!is_null($host)) {
$may_omit_host
Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file.
validate(&$uri, $config, $context)
Public interface for validating components of a URI.
$browsable
Whether or not URIs of this scheme are locatable by a browser http and ftp are accessible, while mailto and news are not.
$default_port
Scheme's default port (integer).
$secure
Whether or not data transmitted over this scheme is encrypted.
$hierarchical
Whether or not the URI always uses <hier_part>, resolves edge cases with making relative URIs absolut...
doValidate(&$uri, $config, $context)
Validates the components of a URI for a specific scheme.
Validator for the components of a URI for a specific scheme.