PHP Class Amp\Artax\Uri

Show file Open project: amphp/artax Class Usage Examples

Public Methods

Method Description
__construct ( $uri )
__toString ( )
canResolve ( $toResolve ) Is the specified URI string resolvable against the current URI instance?
getAbsoluteUri ( ) Retrieve the URI without the fragment component
getAllQueryParameters ( ) : array
getAuthority ( $hiddenPass = true )
getFragment ( ) : string
getHost ( ) : string
getOriginalUri ( ) : array
getPass ( ) : string
getPath ( ) : string
getPort ( ) : integer
getQuery ( ) : string
getQueryParameter ( string $parameter ) : string
getScheme ( ) : string
getUser ( ) : string
hasQueryParameter ( string $parameter ) : boolean
isIpV4 ( ) : boolean
isIpV6 ( ) : boolean
normalize ( ) : string Normalizes the URI for maximal comparison success
resolve ( string $toResolve ) : Uri

Private Methods

Method Description
decodeReservedSubDelimiters ( $str )
decodeUnreservedCharacters ( $str )
mergePaths ( $basePath, $pathToMerge )
normalizeDefaultPort ( ) "URI producers and normalizers should omit the port component and its ":" delimiter if port is empty or if its value would be the same as that of the scheme's default."
parse ( $uri )
parseQueryParameters ( )
reconstitute ( $scheme, $authority, $path, $query, $fragment )
removeDotSegments ( $input )

Method Details

__construct() public method

public __construct ( $uri )

__toString() public method

public __toString ( )

canResolve() public method

Is the specified URI string resolvable against the current URI instance?
public canResolve ( $toResolve )

getAbsoluteUri() public method

Retrieve the URI without the fragment component
public getAbsoluteUri ( )

getAllQueryParameters() public method

public getAllQueryParameters ( ) : array
return array

getAuthority() public method

public getAuthority ( $hiddenPass = true )

getFragment() public method

public getFragment ( ) : string
return string

getHost() public method

public getHost ( ) : string
return string

getOriginalUri() public method

public getOriginalUri ( ) : array
return array

getPass() public method

public getPass ( ) : string
return string

getPath() public method

public getPath ( ) : string
return string

getPort() public method

public getPort ( ) : integer
return integer

getQuery() public method

public getQuery ( ) : string
return string

getQueryParameter() public method

public getQueryParameter ( string $parameter ) : string
$parameter string
return string

getScheme() public method

public getScheme ( ) : string
return string

getUser() public method

public getUser ( ) : string
return string

hasQueryParameter() public method

public hasQueryParameter ( string $parameter ) : boolean
$parameter string
return boolean

isIpV4() public method

public isIpV4 ( ) : boolean
return boolean

isIpV6() public method

public isIpV6 ( ) : boolean
return boolean

normalize() public method

Normalizes the URI for maximal comparison success
public normalize ( ) : string
return string

resolve() public method

public resolve ( string $toResolve ) : Uri
$toResolve string
return Uri