PHP Class Icicle\Http\Message\BasicUri

Inheritance: implements Icicle\Http\Message\Uri
Afficher le fichier Open project: icicleio/http

Méthodes publiques

Méthode Description
__construct ( string $uri = '' )
__toString ( ) : string
getFragment ( ) : string
getHost ( ) : string
getPassword ( ) : string
getPath ( ) : string
getPort ( ) : integer
getQueryValue ( string $name ) : string
getQueryValueAsArray ( string $name ) : array
getQueryValues ( ) : array
getScheme ( ) : string
getUser ( ) : string
hasQueryValue ( string $name ) : boolean
withAddedQueryValue ( string $name, $value ) : Icicle\Http\Message\Uri
withFragment ( string $fragment = null ) : Icicle\Http\Message\Uri
withHost ( string $host = null ) : Icicle\Http\Message\Uri
withPath ( string $path = null ) : Icicle\Http\Message\Uri
withPort ( integer $port = null ) : Icicle\Http\Message\Uri
withQuery ( string $query = null ) : Icicle\Http\Message\Uri
withQueryValue ( string $name, $value ) : Icicle\Http\Message\Uri
withScheme ( string $scheme = null ) : Icicle\Http\Message\Uri
withUser ( string $user, string $password = null ) : Icicle\Http\Message\Uri
withoutQueryValue ( string $name ) : Icicle\Http\Message\Uri

Méthodes protégées

Méthode Description
encodeAuthority ( ) : string
encodePath ( ) : string
encodeQuery ( ) : string
filterPort ( integer $port = null ) : integer
filterScheme ( string $scheme = null ) : string
filterValue ( mixed | mixed[] $values ) : array Converts a given query value to an integer-indexed array of strings.
getPortForScheme ( ) : integer Returns the default port for the current scheme or null if no scheme is set.
parseFragment ( string $fragment = null ) : string
parsePath ( string $path = null ) : string
parseQuery ( string $query = null ) : array
parseQueryPair ( string $data ) : array

Private Methods

Méthode Description
parseUri ( string $uri )

Method Details

__construct() public méthode

public __construct ( string $uri = '' )
$uri string

__toString() public méthode

public __toString ( ) : string
Résultat string

encodeAuthority() protected méthode

protected encodeAuthority ( ) : string
Résultat string

encodePath() protected méthode

protected encodePath ( ) : string
Résultat string

encodeQuery() protected méthode

protected encodeQuery ( ) : string
Résultat string

filterPort() protected méthode

protected filterPort ( integer $port = null ) : integer
$port integer
Résultat integer

filterScheme() protected méthode

protected filterScheme ( string $scheme = null ) : string
$scheme string
Résultat string

filterValue() protected méthode

Converts a given query value to an integer-indexed array of strings.
protected filterValue ( mixed | mixed[] $values ) : array
$values mixed | mixed[]
Résultat array

getFragment() public méthode

public getFragment ( ) : string
Résultat string

getHost() public méthode

public getHost ( ) : string
Résultat string

getPassword() public méthode

public getPassword ( ) : string
Résultat string

getPath() public méthode

public getPath ( ) : string
Résultat string

getPort() public méthode

public getPort ( ) : integer
Résultat integer

getPortForScheme() protected méthode

Returns the default port for the current scheme or null if no scheme is set.
protected getPortForScheme ( ) : integer
Résultat integer

getQueryValue() public méthode

public getQueryValue ( string $name ) : string
$name string
Résultat string

getQueryValueAsArray() public méthode

public getQueryValueAsArray ( string $name ) : array
$name string
Résultat array

getQueryValues() public méthode

public getQueryValues ( ) : array
Résultat array

getScheme() public méthode

public getScheme ( ) : string
Résultat string

getUser() public méthode

public getUser ( ) : string
Résultat string

hasQueryValue() public méthode

public hasQueryValue ( string $name ) : boolean
$name string
Résultat boolean

parseFragment() protected méthode

protected parseFragment ( string $fragment = null ) : string
$fragment string
Résultat string

parsePath() protected méthode

protected parsePath ( string $path = null ) : string
$path string
Résultat string

parseQuery() protected méthode

protected parseQuery ( string $query = null ) : array
$query string
Résultat array

parseQueryPair() protected méthode

protected parseQueryPair ( string $data ) : array
$data string
Résultat array

withAddedQueryValue() public méthode

public withAddedQueryValue ( string $name, $value ) : Icicle\Http\Message\Uri
$name string
Résultat Icicle\Http\Message\Uri

withFragment() public méthode

public withFragment ( string $fragment = null ) : Icicle\Http\Message\Uri
$fragment string
Résultat Icicle\Http\Message\Uri

withHost() public méthode

public withHost ( string $host = null ) : Icicle\Http\Message\Uri
$host string
Résultat Icicle\Http\Message\Uri

withPath() public méthode

public withPath ( string $path = null ) : Icicle\Http\Message\Uri
$path string
Résultat Icicle\Http\Message\Uri

withPort() public méthode

public withPort ( integer $port = null ) : Icicle\Http\Message\Uri
$port integer
Résultat Icicle\Http\Message\Uri

withQuery() public méthode

public withQuery ( string $query = null ) : Icicle\Http\Message\Uri
$query string
Résultat Icicle\Http\Message\Uri

withQueryValue() public méthode

public withQueryValue ( string $name, $value ) : Icicle\Http\Message\Uri
$name string
Résultat Icicle\Http\Message\Uri

withScheme() public méthode

public withScheme ( string $scheme = null ) : Icicle\Http\Message\Uri
$scheme string
Résultat Icicle\Http\Message\Uri

withUser() public méthode

public withUser ( string $user, string $password = null ) : Icicle\Http\Message\Uri
$user string
$password string
Résultat Icicle\Http\Message\Uri

withoutQueryValue() public méthode

public withoutQueryValue ( string $name ) : Icicle\Http\Message\Uri
$name string
Résultat Icicle\Http\Message\Uri