PHP Class Amp\Artax\Uri

Afficher le fichier Open project: amphp/artax Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public __construct ( $uri )

__toString() public méthode

public __toString ( )

canResolve() public méthode

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

getAbsoluteUri() public méthode

Retrieve the URI without the fragment component
public getAbsoluteUri ( )

getAllQueryParameters() public méthode

public getAllQueryParameters ( ) : array
Résultat array

getAuthority() public méthode

public getAuthority ( $hiddenPass = true )

getFragment() public méthode

public getFragment ( ) : string
Résultat string

getHost() public méthode

public getHost ( ) : string
Résultat string

getOriginalUri() public méthode

public getOriginalUri ( ) : array
Résultat array

getPass() public méthode

public getPass ( ) : string
Résultat string

getPath() public méthode

public getPath ( ) : string
Résultat string

getPort() public méthode

public getPort ( ) : integer
Résultat integer

getQuery() public méthode

public getQuery ( ) : string
Résultat string

getQueryParameter() public méthode

public getQueryParameter ( string $parameter ) : string
$parameter string
Résultat string

getScheme() public méthode

public getScheme ( ) : string
Résultat string

getUser() public méthode

public getUser ( ) : string
Résultat string

hasQueryParameter() public méthode

public hasQueryParameter ( string $parameter ) : boolean
$parameter string
Résultat boolean

isIpV4() public méthode

public isIpV4 ( ) : boolean
Résultat boolean

isIpV6() public méthode

public isIpV6 ( ) : boolean
Résultat boolean

normalize() public méthode

Normalizes the URI for maximal comparison success
public normalize ( ) : string
Résultat string

resolve() public méthode

public resolve ( string $toResolve ) : Uri
$toResolve string
Résultat Uri