PHP Class Icicle\Http\Message\BasicUri

Inheritance: implements Icicle\Http\Message\Uri
Datei anzeigen Open project: icicleio/http

Public Methods

Method 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

Protected Methods

Method 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

Method Description
parseUri ( string $uri )

Method Details

__construct() public method

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

__toString() public method

public __toString ( ) : string
return string

encodeAuthority() protected method

protected encodeAuthority ( ) : string
return string

encodePath() protected method

protected encodePath ( ) : string
return string

encodeQuery() protected method

protected encodeQuery ( ) : string
return string

filterPort() protected method

protected filterPort ( integer $port = null ) : integer
$port integer
return integer

filterScheme() protected method

protected filterScheme ( string $scheme = null ) : string
$scheme string
return string

filterValue() protected method

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

getFragment() public method

public getFragment ( ) : string
return string

getHost() public method

public getHost ( ) : string
return string

getPassword() public method

public getPassword ( ) : string
return string

getPath() public method

public getPath ( ) : string
return string

getPort() public method

public getPort ( ) : integer
return integer

getPortForScheme() protected method

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

getQueryValue() public method

public getQueryValue ( string $name ) : string
$name string
return string

getQueryValueAsArray() public method

public getQueryValueAsArray ( string $name ) : array
$name string
return array

getQueryValues() public method

public getQueryValues ( ) : array
return array

getScheme() public method

public getScheme ( ) : string
return string

getUser() public method

public getUser ( ) : string
return string

hasQueryValue() public method

public hasQueryValue ( string $name ) : boolean
$name string
return boolean

parseFragment() protected method

protected parseFragment ( string $fragment = null ) : string
$fragment string
return string

parsePath() protected method

protected parsePath ( string $path = null ) : string
$path string
return string

parseQuery() protected method

protected parseQuery ( string $query = null ) : array
$query string
return array

parseQueryPair() protected method

protected parseQueryPair ( string $data ) : array
$data string
return array

withAddedQueryValue() public method

public withAddedQueryValue ( string $name, $value ) : Icicle\Http\Message\Uri
$name string
return Icicle\Http\Message\Uri

withFragment() public method

public withFragment ( string $fragment = null ) : Icicle\Http\Message\Uri
$fragment string
return Icicle\Http\Message\Uri

withHost() public method

public withHost ( string $host = null ) : Icicle\Http\Message\Uri
$host string
return Icicle\Http\Message\Uri

withPath() public method

public withPath ( string $path = null ) : Icicle\Http\Message\Uri
$path string
return Icicle\Http\Message\Uri

withPort() public method

public withPort ( integer $port = null ) : Icicle\Http\Message\Uri
$port integer
return Icicle\Http\Message\Uri

withQuery() public method

public withQuery ( string $query = null ) : Icicle\Http\Message\Uri
$query string
return Icicle\Http\Message\Uri

withQueryValue() public method

public withQueryValue ( string $name, $value ) : Icicle\Http\Message\Uri
$name string
return Icicle\Http\Message\Uri

withScheme() public method

public withScheme ( string $scheme = null ) : Icicle\Http\Message\Uri
$scheme string
return Icicle\Http\Message\Uri

withUser() public method

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

withoutQueryValue() public method

public withoutQueryValue ( string $name ) : Icicle\Http\Message\Uri
$name string
return Icicle\Http\Message\Uri