Methods summary
public
|
#
__construct( array $parameters = array() )
Constructor.
Parameters
- $parameters
array $parameters An array of parameters
Api
|
public
array
|
#
all( )
Returns the parameters.
Returns
array An array of parameters
Api
|
public
array
|
#
keys( )
Returns the parameter keys.
Returns the parameter keys.
Returns
array An array of parameter keys
Api
|
public
|
#
replace( array $parameters = array() )
Replaces the current parameters by a new set.
Replaces the current parameters by a new set.
Parameters
- $parameters
array $parameters An array of parameters
Api
|
public
|
#
add( array $parameters = array() )
Adds parameters.
Parameters
- $parameters
array $parameters An array of parameters
Api
|
public
mixed
|
#
get( string $path, mixed $default = null, boolean $deep = false )
Returns a parameter by name.
Returns a parameter by name.
Parameters
- $path
string $path The key
- $default
mixed $default The default value if the parameter key does not exist
- $deep
boolean $deep If true, a path like foo[bar] will find deeper items
Returns
mixed
Throws
Api
|
public
|
#
set( string $key, mixed $value )
Sets a parameter by name.
Sets a parameter by name.
Parameters
- $key
string $key The key
- $value
mixed $value The value
Api
|
public
Boolean
|
#
has( string $key )
Returns true if the parameter is defined.
Returns true if the parameter is defined.
Parameters
Returns
Boolean true if the parameter exists, false otherwise
Api
|
public
|
#
remove( string $key )
Removes a parameter.
Parameters
Api
|
public
string
|
#
getAlpha( string $key, mixed $default = '', boolean $deep = false )
Returns the alphabetic characters of the parameter value.
Returns the alphabetic characters of the parameter value.
Parameters
- $key
string $key The parameter key
- $default
mixed $default The default value if the parameter key does not exist
- $deep
boolean $deep If true, a path like foo[bar] will find deeper items
Returns
string The filtered value
Api
|
public
string
|
#
getAlnum( string $key, mixed $default = '', boolean $deep = false )
Returns the alphabetic characters and digits of the parameter value.
Returns the alphabetic characters and digits of the parameter value.
Parameters
- $key
string $key The parameter key
- $default
mixed $default The default value if the parameter key does not exist
- $deep
boolean $deep If true, a path like foo[bar] will find deeper items
Returns
string The filtered value
Api
|
public
string
|
#
getDigits( string $key, mixed $default = '', boolean $deep = false )
Returns the digits of the parameter value.
Returns the digits of the parameter value.
Parameters
- $key
string $key The parameter key
- $default
mixed $default The default value if the parameter key does not exist
- $deep
boolean $deep If true, a path like foo[bar] will find deeper items
Returns
string The filtered value
Api
|
public
integer
|
#
getInt( string $key, mixed $default = 0, boolean $deep = false )
Returns the parameter value converted to integer.
Returns the parameter value converted to integer.
Parameters
- $key
string $key The parameter key
- $default
mixed $default The default value if the parameter key does not exist
- $deep
boolean $deep If true, a path like foo[bar] will find deeper items
Returns
integer The filtered value
Api
|
public
mixed
|
#
filter( string $key, mixed $default = null, boolean $deep = false, integer $filter = FILTER_DEFAULT, mixed $options = array() )
Filter key.
Parameters
- $key
string $key Key.
- $default
mixed $default Default = null.
- $deep
boolean $deep Default = false.
- $filter
integer $filter FILTER_* constant.
- $options
mixed $options Filter options.
Returns
mixed
See
|
public
ArrayIterator
|
#
getIterator( )
Returns an iterator for parameters.
Returns an iterator for parameters.
Returns
Implementation of
|
public
integer
|
#
count( )
Returns the number of parameters.
Returns the number of parameters.
Returns
integer The number of parameters
Implementation of
|