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 18 of file GenericUri.class.php.
static GenericUri::create | ( | ) | [static] |
Reimplemented in HttpUrl, Url, and Urn.
Definition at line 37 of file GenericUri.class.php.
Referenced by TextUtils::normalizeUri().
GenericUri::parse | ( | $ | uri, | |
$ | guessClass = false | |||
) | [final] |
Definition at line 45 of file GenericUri.class.php.
References getKnownSubSchemes().
Referenced by setSchemeSpecificPart().
GenericUri::transform | ( | GenericUri $ | reference, | |
$ | strict = true | |||
) | [final] |
Definition at line 107 of file GenericUri.class.php.
References $path, getAuthority(), getFragment(), getHost(), getPath(), getPort(), getQuery(), getScheme(), getUserInfo(), setHost(), setPath(), setPort(), setQuery(), setScheme(), and setUserInfo().
GenericUri::getKnownSubSchemes | ( | ) |
Reimplemented in Url, and Urn.
Definition at line 175 of file GenericUri.class.php.
References Url::create(), and Urn::create().
Referenced by parse().
GenericUri::setScheme | ( | $ | scheme | ) |
Definition at line 186 of file GenericUri.class.php.
References $scheme.
Referenced by Url::fixMistakenPath(), normalize(), and transform().
GenericUri::getScheme | ( | ) |
Definition at line 193 of file GenericUri.class.php.
Referenced by HttpUrl::normalize(), normalize(), and transform().
GenericUri::setUserInfo | ( | $ | userInfo | ) |
Definition at line 201 of file GenericUri.class.php.
References $userInfo.
Referenced by normalize(), setAuthority(), and transform().
GenericUri::getUserInfo | ( | ) |
GenericUri::setHost | ( | $ | host | ) |
Definition at line 216 of file GenericUri.class.php.
References $host.
Referenced by normalize(), setAuthority(), and transform().
GenericUri::getHost | ( | ) |
GenericUri::setPort | ( | $ | port | ) |
Definition at line 231 of file GenericUri.class.php.
References $port.
Referenced by Url::normalize(), HttpUrl::normalize(), setAuthority(), and transform().
GenericUri::getPort | ( | ) |
Definition at line 238 of file GenericUri.class.php.
Referenced by Url::normalize(), HttpUrl::normalize(), and transform().
GenericUri::setPath | ( | $ | path | ) |
Definition at line 246 of file GenericUri.class.php.
References $path.
Referenced by HttpUrl::ensureAbsolute(), Url::fixAuthorityFromPath(), Url::fixMistakenPath(), HttpUrl::normalize(), normalize(), and transform().
GenericUri::getPath | ( | ) |
Definition at line 253 of file GenericUri.class.php.
Referenced by mergePath(), HttpUrl::normalize(), normalize(), and transform().
GenericUri::setQuery | ( | $ | query | ) |
Definition at line 261 of file GenericUri.class.php.
References $query.
Referenced by appendQuery(), normalize(), and transform().
GenericUri::appendQuery | ( | $ | string, | |
$ | separator = '&' | |||
) |
Definition at line 271 of file GenericUri.class.php.
References $query, and setQuery().
GenericUri::getQuery | ( | ) |
GenericUri::setFragment | ( | $ | fragment | ) |
Definition at line 293 of file GenericUri.class.php.
References $fragment.
Referenced by normalize().
GenericUri::getFragment | ( | ) |
GenericUri::setAuthority | ( | $ | authority | ) |
Definition at line 308 of file GenericUri.class.php.
References setHost(), setPort(), and setUserInfo().
Referenced by HttpUrl::ensureAbsolute(), and Url::fixAuthorityFromPath().
GenericUri::getAuthority | ( | ) |
Definition at line 333 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::setSchemeSpecificPart | ( | $ | schemeSpecificPart | ) |
Definition at line 349 of file GenericUri.class.php.
References parse().
GenericUri::getSchemeSpecificPart | ( | ) |
Definition at line 354 of file GenericUri.class.php.
References getAuthority().
Referenced by toString().
GenericUri::toString | ( | ) |
Implements Stringable.
Definition at line 374 of file GenericUri.class.php.
References getSchemeSpecificPart().
Referenced by OpenIdConsumer::makeCheckIdRequest().
GenericUri::toStringFromRoot | ( | ) |
Definition at line 386 of file GenericUri.class.php.
GenericUri::isValid | ( | ) |
Reimplemented in Url, and Urn.
Definition at line 399 of file GenericUri.class.php.
References isValidFragment(), isValidHost(), isValidPath(), isValidPort(), isValidQuery(), isValidScheme(), and isValidUserInfo().
GenericUri::isValidScheme | ( | ) |
Reimplemented in HttpUrl.
Definition at line 411 of file GenericUri.class.php.
Referenced by isValid().
GenericUri::isValidUserInfo | ( | ) |
Definition at line 420 of file GenericUri.class.php.
References userInfoCharPattern().
Referenced by isValid().
GenericUri::isValidHost | ( | ) |
Definition at line 431 of file GenericUri.class.php.
References isValidHostName().
Referenced by isValid().
GenericUri::isValidPort | ( | ) |
Reimplemented in HttpUrl.
Definition at line 483 of file GenericUri.class.php.
Referenced by isValid().
GenericUri::isValidPath | ( | ) |
Definition at line 495 of file GenericUri.class.php.
References getAuthority(), and segmentCharPattern().
Referenced by isValid().
GenericUri::isValidQuery | ( | ) |
Definition at line 539 of file GenericUri.class.php.
References isValidFragmentOrQuery().
Referenced by isValid().
GenericUri::isValidFragment | ( | ) |
Definition at line 545 of file GenericUri.class.php.
References isValidFragmentOrQuery().
Referenced by isValid().
GenericUri::isAbsolute | ( | ) |
GenericUri::isRelative | ( | ) |
GenericUri::isValidHostName | ( | ) | [protected] |
Reimplemented in HttpUrl.
Definition at line 561 of file GenericUri.class.php.
References hostNameCharPattern().
Referenced by isValidHost().
GenericUri::charPattern | ( | $ | extraChars = null , |
|
$ | pctEncodedPattern = true | |||
) | [protected] |
Definition at line 573 of file GenericUri.class.php.
Referenced by fragmentOrQueryCharPattern(), hostNameCharPattern(), HttpUrl::isValidHostName(), segmentCharPattern(), and userInfoCharPattern().
GenericUri::userInfoCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 589 of file GenericUri.class.php.
References charPattern().
Referenced by isValidUserInfo(), and normalize().
GenericUri::hostNameCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 594 of file GenericUri.class.php.
References charPattern().
Referenced by isValidHostName(), and normalize().
GenericUri::segmentCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 599 of file GenericUri.class.php.
References charPattern().
Referenced by isValidPath(), and normalize().
GenericUri::fragmentOrQueryCharPattern | ( | $ | pctEncoded = true |
) | [protected] |
Definition at line 604 of file GenericUri.class.php.
References charPattern().
Referenced by isValidFragmentOrQuery(), and normalize().
GenericUri::isValidFragmentOrQuery | ( | $ | string | ) | [private] |
Definition at line 609 of file GenericUri.class.php.
References fragmentOrQueryCharPattern().
Referenced by isValidFragment(), and isValidQuery().
static GenericUri::removeDotSegments | ( | $ | path | ) | [static, private] |
GenericUri::mergePath | ( | $ | path | ) | [private] |
Definition at line 670 of file GenericUri.class.php.
References $path, getAuthority(), and getPath().
GenericUri::normalize | ( | ) |
Reimplemented in HttpUrl, and Url.
Definition at line 685 of file GenericUri.class.php.
References fragmentOrQueryCharPattern(), getFragment(), getHost(), getPath(), getQuery(), getScheme(), getUserInfo(), hostNameCharPattern(), normalizePercentEncoded(), segmentCharPattern(), setFragment(), setHost(), setPath(), setQuery(), setScheme(), setUserInfo(), and userInfoCharPattern().
Referenced by normalizePercentEncoded().
GenericUri::normalizePercentEncoded | ( | $ | string, | |
$ | unreservedPartChars | |||
) | [private] |
Definition at line 731 of file GenericUri.class.php.
References PercentEncodingNormalizator::create(), and normalize().
Referenced by normalize().
const GenericUri::CHARS_UNRESERVED = 'a-z0-9-._~' |
Definition at line 20 of file GenericUri.class.php.
Referenced by PercentEncodingNormalizator::normalize().
const GenericUri::CHARS_SUBDELIMS = '!$&\'()*+,;=' |
Definition at line 21 of file GenericUri.class.php.
const GenericUri::PATTERN_PCTENCODED = '%[0-9a-f][0-9a-f]' |
Definition at line 22 of file GenericUri.class.php.
GenericUri::$scheme = null [protected] |
Definition at line 24 of file GenericUri.class.php.
Referenced by HttpUrl::normalize(), and setScheme().
GenericUri::$userInfo = null [protected] |
GenericUri::$host = null [protected] |
GenericUri::$port = null [protected] |
Definition at line 28 of file GenericUri.class.php.
Referenced by HttpUrl::normalize(), and setPort().
GenericUri::$path = null [protected] |
Definition at line 30 of file GenericUri.class.php.
Referenced by mergePath(), removeDotSegments(), setPath(), and transform().
GenericUri::$query = null [protected] |
GenericUri::$fragment = null [protected] |