Public Member Functions | |
parse ($uri, $guessClass=false) | |
transform (GenericUri $reference, $strict=true) | |
getKnownSubSchemes () | |
setScheme ($scheme) | |
getScheme () | |
setUserInfo ($userInfo) | |
getUserInfo () | |
setHost ($host) | |
getHost () | |
setPort ($port) | |
getPort () | |
setPath ($path) | |
getPath () | |
setQuery ($query) | |
appendQuery ($string, $separator= '&') | |
getQuery () | |
setFragment ($fragment) | |
getFragment () | |
setAuthority ($authority) | |
getAuthority () | |
setSchemeSpecificPart ($schemeSpecificPart) | |
getSchemeSpecificPart () | |
toString () | |
toStringFromRoot () | |
isValid () | |
isValidScheme () | |
isValidUserInfo () | |
isValidHost () | |
isValidPort () | |
isValidPath () | |
isValidQuery () | |
isValidFragment () | |
isAbsolute () | |
isRelative () | |
normalize () | |
Static Public Member Functions | |
static | create () |
Public Attributes | |
const | CHARS_UNRESERVED = 'a-z0-9-._~' |
const | CHARS_SUBDELIMS = '!$&\'()*+,;=' |
const | PATTERN_PCTENCODED = '%[0-9a-f][0-9a-f]' |
Protected Member Functions | |
isValidHostName () | |
charPattern ($extraChars=null, $pctEncodedPattern=true) | |
userInfoCharPattern ($pctEncoded=true) | |
hostNameCharPattern ($pctEncoded=true) | |
segmentCharPattern ($pctEncoded=true) | |
fragmentOrQueryCharPattern ($pctEncoded=true) | |
Protected Attributes | |
$scheme = null | |
$userInfo = null | |
$host = null | |
$port = null | |
$path = null | |
$query = null | |
$fragment = null | |
Private Member Functions | |
isValidFragmentOrQuery ($string) | |
mergePath ($path) | |
normalizePercentEncoded ($string, $unreservedPartChars) | |
Static Private Member Functions | |
static | removeDotSegments ($path) |
Definition at line 17 of file GenericUri.class.php.
GenericUri::appendQuery | ( | $ | string, | |
$ | separator = '&' | |||
) |
Definition at line 270 of file GenericUri.class.php.
References $query, and setQuery().
GenericUri::charPattern | ( | $ | extraChars = null , |
|
$ | pctEncodedPattern = true | |||
) | [protected] |
Definition at line 572 of file GenericUri.class.php.
Referenced by fragmentOrQueryCharPattern(), hostNameCharPattern(), HttpUrl::isValidHostName(), segmentCharPattern(), and userInfoCharPattern().
static GenericUri::create | ( | ) | [static] |
Reimplemented in HttpUrl, Url, and Urn.
Definition at line 36 of file GenericUri.class.php.
Referenced by DirectoryToObjectBinder::getRealObject(), and TextUtils::normalizeUri().
GenericUri::fragmentOrQueryCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 603 of file GenericUri.class.php.
References charPattern().
Referenced by isValidFragmentOrQuery(), and normalize().
GenericUri::getAuthority | ( | ) |
Definition at line 332 of file GenericUri.class.php.
Referenced by HttpUrl::ensureAbsolute(), Url::fixAuthorityFromPath(), Url::fixMistakenPath(), getSchemeSpecificPart(), Urn::isValid(), Url::isValid(), isValidPath(), mergePath(), Url::toSmallString(), and transform().
GenericUri::getFragment | ( | ) |
Definition at line 299 of file GenericUri.class.php.
Referenced by normalize(), and transform().
GenericUri::getHost | ( | ) |
Definition at line 222 of file GenericUri.class.php.
Referenced by normalize(), and transform().
GenericUri::getKnownSubSchemes | ( | ) |
Reimplemented in Url, and Urn.
Definition at line 174 of file GenericUri.class.php.
References Url::create(), and Urn::create().
Referenced by parse().
GenericUri::getPath | ( | ) |
Definition at line 252 of file GenericUri.class.php.
Referenced by mergePath(), HttpUrl::normalize(), normalize(), and transform().
GenericUri::getPort | ( | ) |
Definition at line 237 of file GenericUri.class.php.
Referenced by Url::normalize(), HttpUrl::normalize(), and transform().
GenericUri::getQuery | ( | ) |
Definition at line 284 of file GenericUri.class.php.
Referenced by normalize(), and transform().
GenericUri::getScheme | ( | ) |
Definition at line 192 of file GenericUri.class.php.
Referenced by HttpUrl::normalize(), normalize(), and transform().
GenericUri::getSchemeSpecificPart | ( | ) |
Definition at line 353 of file GenericUri.class.php.
References getAuthority().
Referenced by toString().
GenericUri::getUserInfo | ( | ) |
Definition at line 207 of file GenericUri.class.php.
Referenced by normalize(), and transform().
GenericUri::hostNameCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 593 of file GenericUri.class.php.
References charPattern().
Referenced by isValidHostName(), and normalize().
GenericUri::isAbsolute | ( | ) |
Definition at line 550 of file GenericUri.class.php.
Referenced by Url::isValid().
GenericUri::isRelative | ( | ) |
Definition at line 555 of file GenericUri.class.php.
Referenced by Url::isValid().
GenericUri::isValid | ( | ) |
Reimplemented in Url, and Urn.
Definition at line 398 of file GenericUri.class.php.
References isValidFragment(), isValidHost(), isValidPath(), isValidPort(), isValidQuery(), isValidScheme(), and isValidUserInfo().
GenericUri::isValidFragment | ( | ) |
Definition at line 544 of file GenericUri.class.php.
References isValidFragmentOrQuery().
Referenced by isValid().
GenericUri::isValidFragmentOrQuery | ( | $ | string | ) | [private] |
Definition at line 608 of file GenericUri.class.php.
References fragmentOrQueryCharPattern().
Referenced by isValidFragment(), and isValidQuery().
GenericUri::isValidHost | ( | ) |
Definition at line 430 of file GenericUri.class.php.
References isValidHostName().
Referenced by isValid().
GenericUri::isValidHostName | ( | ) | [protected] |
Reimplemented in HttpUrl.
Definition at line 560 of file GenericUri.class.php.
References hostNameCharPattern().
Referenced by isValidHost().
GenericUri::isValidPath | ( | ) |
Definition at line 494 of file GenericUri.class.php.
References getAuthority(), and segmentCharPattern().
Referenced by isValid().
GenericUri::isValidPort | ( | ) |
Reimplemented in HttpUrl.
Definition at line 482 of file GenericUri.class.php.
Referenced by isValid().
GenericUri::isValidQuery | ( | ) |
Definition at line 538 of file GenericUri.class.php.
References isValidFragmentOrQuery().
Referenced by isValid().
GenericUri::isValidScheme | ( | ) |
Reimplemented in HttpUrl.
Definition at line 410 of file GenericUri.class.php.
Referenced by isValid().
GenericUri::isValidUserInfo | ( | ) |
Definition at line 419 of file GenericUri.class.php.
References userInfoCharPattern().
Referenced by isValid().
GenericUri::mergePath | ( | $ | path | ) | [private] |
Definition at line 669 of file GenericUri.class.php.
References $path, getAuthority(), and getPath().
GenericUri::normalize | ( | ) |
Reimplemented in HttpUrl, and Url.
Definition at line 684 of file GenericUri.class.php.
References fragmentOrQueryCharPattern(), getFragment(), getHost(), getPath(), getQuery(), getScheme(), getUserInfo(), hostNameCharPattern(), normalizePercentEncoded(), segmentCharPattern(), setFragment(), setHost(), setPath(), setQuery(), setScheme(), setUserInfo(), and userInfoCharPattern().
GenericUri::normalizePercentEncoded | ( | $ | string, | |
$ | unreservedPartChars | |||
) | [private] |
Definition at line 730 of file GenericUri.class.php.
References PercentEncodingNormalizator::create().
Referenced by normalize().
GenericUri::parse | ( | $ | uri, | |
$ | guessClass = false | |||
) | [final] |
Definition at line 44 of file GenericUri.class.php.
References getKnownSubSchemes().
static GenericUri::removeDotSegments | ( | $ | path | ) | [static, private] |
Definition at line 615 of file GenericUri.class.php.
References $path.
GenericUri::segmentCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 598 of file GenericUri.class.php.
References charPattern().
Referenced by isValidPath(), and normalize().
GenericUri::setAuthority | ( | $ | authority | ) |
Definition at line 307 of file GenericUri.class.php.
References setHost(), setPort(), and setUserInfo().
Referenced by HttpUrl::ensureAbsolute(), and Url::fixAuthorityFromPath().
GenericUri::setFragment | ( | $ | fragment | ) |
Definition at line 292 of file GenericUri.class.php.
References $fragment.
Referenced by normalize().
GenericUri::setHost | ( | $ | host | ) |
Definition at line 215 of file GenericUri.class.php.
References $host.
Referenced by normalize(), setAuthority(), HttpUrl::setHttpHost(), and transform().
GenericUri::setPath | ( | $ | path | ) |
Definition at line 245 of file GenericUri.class.php.
References $path.
Referenced by HttpUrl::ensureAbsolute(), Url::fixAuthorityFromPath(), Url::fixMistakenPath(), HttpUrl::normalize(), normalize(), and transform().
GenericUri::setPort | ( | $ | port | ) |
Definition at line 230 of file GenericUri.class.php.
References $port.
Referenced by Url::normalize(), HttpUrl::normalize(), setAuthority(), HttpUrl::setHttpHost(), and transform().
GenericUri::setQuery | ( | $ | query | ) |
Definition at line 260 of file GenericUri.class.php.
References $query.
Referenced by appendQuery(), normalize(), and transform().
GenericUri::setScheme | ( | $ | scheme | ) |
Definition at line 185 of file GenericUri.class.php.
References $scheme.
Referenced by Url::fixMistakenPath(), normalize(), and transform().
GenericUri::setSchemeSpecificPart | ( | $ | schemeSpecificPart | ) |
Definition at line 348 of file GenericUri.class.php.
GenericUri::setUserInfo | ( | $ | userInfo | ) |
Definition at line 200 of file GenericUri.class.php.
References $userInfo.
Referenced by normalize(), setAuthority(), and transform().
GenericUri::toString | ( | ) |
Implements Stringable.
Definition at line 373 of file GenericUri.class.php.
References getSchemeSpecificPart().
Referenced by OpenIdConsumer::makeCheckIdRequest().
GenericUri::toStringFromRoot | ( | ) |
Definition at line 385 of file GenericUri.class.php.
GenericUri::transform | ( | GenericUri $ | reference, | |
$ | strict = true | |||
) | [final] |
Definition at line 106 of file GenericUri.class.php.
References $path, getAuthority(), getFragment(), getHost(), getPath(), getPort(), getQuery(), getScheme(), getUserInfo(), setHost(), setPath(), setPort(), setQuery(), setScheme(), and setUserInfo().
GenericUri::userInfoCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 588 of file GenericUri.class.php.
References charPattern().
Referenced by isValidUserInfo(), and normalize().
GenericUri::$fragment = null [protected] |
Definition at line 31 of file GenericUri.class.php.
Referenced by setFragment().
GenericUri::$host = null [protected] |
Definition at line 26 of file GenericUri.class.php.
Referenced by setHost(), and HttpUrl::setHttpHost().
GenericUri::$path = null [protected] |
Definition at line 29 of file GenericUri.class.php.
Referenced by mergePath(), removeDotSegments(), setPath(), and transform().
GenericUri::$port = null [protected] |
Definition at line 27 of file GenericUri.class.php.
Referenced by HttpUrl::normalize(), and setPort().
GenericUri::$query = null [protected] |
Definition at line 30 of file GenericUri.class.php.
Referenced by appendQuery(), and setQuery().
GenericUri::$scheme = null [protected] |
Definition at line 23 of file GenericUri.class.php.
Referenced by HttpUrl::normalize(), and setScheme().
GenericUri::$userInfo = null [protected] |
Definition at line 25 of file GenericUri.class.php.
Referenced by setUserInfo().
const GenericUri::CHARS_SUBDELIMS = '!$&\'()*+,;=' |
Definition at line 20 of file GenericUri.class.php.
const GenericUri::CHARS_UNRESERVED = 'a-z0-9-._~' |
Definition at line 19 of file GenericUri.class.php.
Referenced by PercentEncodingNormalizator::normalize().
const GenericUri::PATTERN_PCTENCODED = '%[0-9a-f][0-9a-f]' |
Definition at line 21 of file GenericUri.class.php.