Class Uri (namespace Nette\Web)
URI Syntax (RFC 3986).
http://user:pass@nette.org:8042/en/manual.html?name=param#fragment \__/^^^\_________________________/\_____________/^\________/^\______/ | | | | | scheme authority path query fragment
- authority: [user[:pass]@]host[:port]
- hostUri: http://user:pass@nette.org:8042
Object | --Uri
Direct Known Sub-classes:
Public Method Summary | |
---|---|
Uri |
__construct
([string $uri =
NULL ])
|
void |
canonicalize
()
Transform to canonical form.
|
string |
Returns the entire URI including query string and fragment.
|
string |
getAuthority
()
Returns the [user[:pass]@]host[:port] part of URI.
|
string |
getHostUri
()
Returns the scheme and authority part of URI.
|
bool |
isEqual
(string $uri)
URI comparsion (this object must be in canonical form).
|
static string |
unescape
(string $s, [string $reserved =
'%;/?:@&=+$,' ])
Similar to rawurldecode, but preserve reserved chars encoded.
|
string |
__toString
()
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
static array | $defaultPorts | array(
'http' => 80,
'https' => 443,
'ftp' => 21,
'news' => 119,... |
line 47 |
|
string | $fragment | '' |
line 77 |
|
string | $host | '' |
line 65 |
|
string | $pass | '' |
line 62 |
|
string | $path | '' |
line 71 |
|
int | $port | NULL |
line 68 |
|
string | $query | '' |
line 74 |
|
string | $scheme | '' |
line 56 |
|
string | $user | '' |
line 59 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 85 __constructpublic Uri __construct ([string $uri =
|
||||||||||||||||||
line 184 canonicalizepublic void canonicalize () Transform to canonical form.
|
||||||||||||||||||
line 109 getAbsoluteUripublic string getAbsoluteUri () Returns the entire URI including query string and fragment.
|
||||||||||||||||||
line 122 getAuthoritypublic string getAuthority () Returns the [user[:pass]@]host[:port] part of URI.
|
||||||||||||||||||
line 142 getHostUripublic string getHostUri () Returns the scheme and authority part of URI.
|
||||||||||||||||||
line 154 isEqualpublic bool isEqual (string $uri) URI comparsion (this object must be in canonical form).
|
||||||||||||||||||
line 215 unescapepublic static string unescape (string $s, [string $reserved = Similar to rawurldecode, but preserve reserved chars encoded.
|
||||||||||||||||||
line 202 __toStringpublic string __toString ()
|