scheme user password host port basePath relativeUrl | | | | | | | --\ /--\ /------\ /-------\ /--\/--\/----------------------------\ http://john:[email protected]:8042/en/manual.php?name=param#fragment <-- absoluteUrl \__________________________/\____________/^\________/^\______/ | | | | authority path query fragment- authority: [user[:password]@]host[:port] - hostUrl: http://user:[email protected]:8042 - basePath: /en/ (everything before relative URI not including the script name) - baseUrl: http://user:[email protected]:8042/en/ - relativeUrl: manual.php Показать файл Открыть проект Примеры использования класса
Свойство | Тип | Описание | |
---|---|---|---|
$defaultPorts | array |
Метод | Описание | |
---|---|---|
__construct ( $url = NULL ) | ||
__toString ( ) : string | ||
appendQuery ( $value ) : self | Appends the query part of URI. | |
canonicalize ( ) : self | Transforms URL to canonical form. | |
getAbsoluteUrl ( ) : string | Returns the entire URI including query string and fragment. | |
getAuthority ( ) : string | Returns the [user[:pass]@]host[:port] part of URI. | |
getBasePath ( ) : string | Returns the base-path. | |
getBaseUrl ( ) : string | Returns the base-URI. | |
getFragment ( ) : string | Returns the fragment part of URI. | |
getHost ( ) : string | Returns the host part of URI. | |
getHostUrl ( ) : string | Returns the scheme and authority part of URI. | |
getPassword ( ) : string | Returns the password part of URI. | |
getPath ( ) : string | Returns the path part of URI. | |
getPort ( ) : integer | null | Returns the port part of URI. | |
getQuery ( ) : string | Returns the query part of URI. | |
getQueryParameter ( $name, $default = NULL ) : mixed | ||
getQueryParameters ( ) : array | ||
getRelativeUrl ( ) : string | Returns the relative-URI. | |
getScheme ( ) : string | Returns the scheme part of URI. | |
getUser ( ) : string | Returns the user name part of URI. | |
isEqual ( $url ) : boolean | URL comparison. | |
jsonSerialize ( ) : string | ||
parseQuery ( $s ) : array | Parses query string. | |
setFragment ( $value ) : self | Sets the fragment part of URI. | |
setHost ( $value ) : self | Sets the host part of URI. | |
setPassword ( $value ) : self | Sets the password part of URI. | |
setPath ( $value ) : self | Sets the path part of URI. | |
setPort ( $value ) : self | Sets the port part of URI. | |
setQuery ( $value ) : self | Sets the query part of URI. | |
setQueryParameter ( $name, $value ) : self | ||
setScheme ( $value ) : self | Sets the scheme part of URI. | |
setUser ( $value ) : self | Sets the user name part of URI. | |
unescape ( $s, $reserved = '%;/?:@&=+$,' ) : string | Similar to rawurldecode, but preserves reserved chars encoded. |
public appendQuery ( $value ) : self | ||
Результат | self |
public canonicalize ( ) : self | ||
Результат | self |
public getAbsoluteUrl ( ) : string | ||
Результат | string |
public getAuthority ( ) : string | ||
Результат | string |
public getBasePath ( ) : string | ||
Результат | string |
public getFragment ( ) : string | ||
Результат | string |
public getHostUrl ( ) : string | ||
Результат | string |
public getPassword ( ) : string | ||
Результат | string |
public getQueryParameter ( $name, $default = NULL ) : mixed | ||
Результат | mixed |
public getRelativeUrl ( ) : string | ||
Результат | string |
public static parseQuery ( $s ) : array | ||
Результат | array |
public setFragment ( $value ) : self | ||
Результат | self |
public setHost ( $value ) : self | ||
Результат | self |
public setPassword ( $value ) : self | ||
Результат | self |
public setPath ( $value ) : self | ||
Результат | self |
public setPort ( $value ) : self | ||
Результат | self |
public setQuery ( $value ) : self | ||
Результат | self |
public setQueryParameter ( $name, $value ) : self | ||
Результат | self |
public setScheme ( $value ) : self | ||
Результат | self |
public setUser ( $value ) : self | ||
Результат | self |