Метод |
Описание |
|
__construct ( string $urlString ) |
|
|
__toString ( ) : string |
The URL as a string. |
|
construct ( $urlString ) |
|
|
getDefaultPort ( ) : integer |
The default TCP port for the scheme of the URL |
|
getFragmentString ( ) : string |
Fragment string (after fragment delimiter '#') |
|
getHost ( ) : string |
Hostname (without port information) e.g. example.org |
|
getHostRelativeUrl ( ) : string |
The URL components after the host. |
|
getHostWithPort ( ) : string |
Host, including port unless it is the default port for the scheme. |
|
getPath ( ) : string |
Path component (after host, before query string delimiter '?') |
|
getPort ( ) : integer |
TCP port number, defaults to 80 for HTTP and 443 for HTTPS. |
|
getQueryString ( ) : string |
Query string (after query delimiter '?', before fragment delimiter '#') |
|
getScheme ( ) : string |
Scheme, either http or https |
|
getSchemeRelativeUrl ( ) : string |
The URL components after the scheme |
|
getUrlForFragment ( $fragment ) : Url |
Builds a url with a different fragment (the part after # in the url) |
|
getUrlForHost ( $host ) : Url |
Builds a URL with a different host |
|
getUrlForMergedParameters ( array $queryParameters ) |
Builds a URL with added/merged query parameters |
|
getUrlForParameters ( array $queryParameters ) |
|
|
getUrlForPath ( $path ) : Url |
Builds a URL with a different path component |
|
getUrlForRelativePath ( $path ) : Url |
Builds a URL with a path component that is relative to the current one |
|
getUrlForScheme ( $scheme ) : Url |
Builds a URL with a different scheme |
|
hasDefaultPort ( ) |
Whether the URL has a default port (i.e. has a scheme) |
|
hasFragmentString ( ) : boolean |
Whether the URL has a fragment string. |
|
hasHost ( ) : boolean |
Whether the URL has a host component. |
|
hasPort ( ) |
Whether the URL has an explicitly specified port. |
|
hasQueryString ( ) : boolean |
Whether the URL has a query string. |
|
hasScheme ( ) : boolean |
Whether the URL has a scheme component. |
|
isPortDefault ( ) : boolean |
Whether the port is the default for the scheme. |
|
relative ( $path ) |
|
|