UrlImmutable
class UrlImmutable implements JsonSerializable
Immutable representation of a URL.
scheme user password host port path query fragment | | | | | | | | /--\ /--\ /------\ /-------\ /--\/------------\ /--------\ /------\ http://john:x0y17575@nette.org:8042/en/manual.php?name=param#fragment <-- absoluteUrl \______\__________________________/ | | hostUrl authority
Properties
string read-only | $scheme | ||
string read-only | $user | ||
string read-only | $password | ||
string read-only | $host | ||
int read-only | $port | ||
string read-only | $path | ||
string read-only | $query | ||
string read-only | $fragment | ||
string read-only | $absoluteUrl | ||
string read-only | $authority | ||
string read-only | $hostUrl | ||
array read-only | $queryParameters |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Returns the entire URI including query string and fragment.
Returns the [user[:pass]@]host[:port] part of URI.
Returns the scheme and authority part of URI.
No description
No description
No description
No description
Details
at line 77
__construct(string|UrlImmutable|Url $url)
No description
at line 90
UrlImmutable
withScheme(string $scheme)
No description
at line 99
string
getScheme()
No description
at line 106
UrlImmutable
withUser(string $user)
No description
at line 115
string
getUser()
No description
at line 122
UrlImmutable
withPassword(string $password)
No description
at line 131
string
getPassword()
No description
at line 138
UrlImmutable
withoutUserInfo()
No description
at line 148
UrlImmutable
withHost(string $host)
No description
at line 157
string
getHost()
No description
at line 163
string
getDomain(int $level = 2)
No description
at line 176
UrlImmutable
withPort(int $port)
No description
at line 185
int|null
getPort()
No description
at line 191
int|null
getDefaultPort()
No description
at line 198
UrlImmutable
withPath(string $path)
No description
at line 207
string
getPath()
No description
at line 217
UrlImmutable
withQuery(string|array $query)
No description
at line 226
string
getQuery()
No description
at line 236
UrlImmutable
withQueryParameter(string $name, mixed $value)
No description
at line 244
array
getQueryParameters()
No description
at line 251
array|string|null
getQueryParameter(string $name)
No description
at line 258
UrlImmutable
withFragment(string $fragment)
No description
at line 267
string
getFragment()
No description
at line 276
string
getAbsoluteUrl()
Returns the entire URI including query string and fragment.
at line 287
string
getAuthority()
Returns the [user[:pass]@]host[:port] part of URI.
at line 296
string
getHostUrl()
Returns the scheme and authority part of URI.
at line 303
string
__toString()
No description
at line 312
bool
isEqual(string|Url|UrlImmutable $url)
No description
at line 318
string
jsonSerialize()
No description
at line 325
final array
export()
internal |
No description
at line 331
protected void
build()
No description