URL is either absolute URI with authority part or relative one without authority part. More...
Public Member Functions | |
getKnownSubSchemes () | |
isValid () | |
fixAuthorityFromPath () | |
If scheme is present but authority is empty, authority part is taken from fisrt non-empty segment, i.e: http:////anything/... | |
fixMistakenPath () | |
see: rfc3986, sec. | |
toSmallString () | |
normalize () | |
Static Public Member Functions | |
static | create () |
Protected Attributes | |
$knownSubSchemes |
URL is either absolute URI with authority part or relative one without authority part.
Definition at line 18 of file Url.class.php.
static Url::create | ( | ) | [static] |
Reimplemented from GenericUri.
Reimplemented in HttpUrl.
Definition at line 35 of file Url.class.php.
Referenced by fixMistakenPath(), and GenericUri::getKnownSubSchemes().
Url::fixAuthorityFromPath | ( | ) |
If scheme is present but authority is empty, authority part is taken from fisrt non-empty segment, i.e: http:////anything/...
becomes http://anything/...
Definition at line 60 of file Url.class.php.
References GenericUri::getAuthority(), GenericUri::setAuthority(), and GenericUri::setPath().
Referenced by HttpUrl::ensureAbsolute(), and fixMistakenPath().
Url::fixMistakenPath | ( | ) |
see: rfc3986, sec.
4.2, paragraph 4; rfc 2396, sec 3.1
Definition at line 80 of file Url.class.php.
References create(), fixAuthorityFromPath(), GenericUri::getAuthority(), GenericUri::setPath(), and GenericUri::setScheme().
Referenced by HttpUrl::ensureAbsolute().
Url::getKnownSubSchemes | ( | ) |
Reimplemented from GenericUri.
Definition at line 40 of file Url.class.php.
Url::isValid | ( | ) |
Reimplemented from GenericUri.
Definition at line 45 of file Url.class.php.
References GenericUri::getAuthority(), GenericUri::isAbsolute(), and GenericUri::isRelative().
Referenced by OpenIdCredentials::__construct(), OpenIdConsumer::associate(), and OpenIdConsumer::makeCheckIdRequest().
Url::normalize | ( | ) |
Reimplemented from GenericUri.
Reimplemented in HttpUrl.
Definition at line 128 of file Url.class.php.
References GenericUri::getPort(), and GenericUri::setPort().
Url::toSmallString | ( | ) |
Definition at line 108 of file Url.class.php.
References GenericUri::getAuthority().
Url::$knownSubSchemes [protected] |
array( 'http' => 'HttpUrl', 'https' => 'HttpUrl', 'ftp' => 'Url', 'nntp' => 'Url', 'telnet' => 'Url', 'gopher' => 'Url', 'wais' => 'Url', 'file' => 'Url', 'prospero' => 'Url' )
Reimplemented in HttpUrl.
Definition at line 20 of file Url.class.php.