Methods summary
public
|
#
__construct( array $parameters = array() )
Constructor.
Parameters
- $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
- An array of parameters
Api
|
public
|
#
add( array $parameters = array() )
Adds parameters.
Parameters
- $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
- The key
- $default
- The default value if the parameter key does not exist
- $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
- The key
- $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
- The parameter key
- $default
- The default value if the parameter key does not exist
- $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
- The parameter key
- $default
- The default value if the parameter key does not exist
- $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
- The parameter key
- $default
- The default value if the parameter key does not exist
- $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
- The parameter key
- $default
- The default value if the parameter key does not exist
- $deep
- If true, a path like foo[bar] will find deeper items
Returns
integer The filtered value
Api
|
public
boolean
|
#
getBoolean( string $key, mixed $default = false, boolean $deep = false )
Returns the parameter value converted to boolean.
Returns the parameter value converted to boolean.
Parameters
- $key
- The parameter key
- $default
- The default value if the parameter key does not exist
- $deep
- If true, a path like foo[bar] will find deeper items
Returns
boolean The filtered value
|
public
mixed
|
#
filter( string $key, mixed $default = null, boolean $deep = false, integer $filter = FILTER_DEFAULT, mixed $options = array() )
Filter key.
Parameters
- $key
- Key.
- $default
- Default = null.
- $deep
- Default = false.
- $filter
- FILTER_* constant.
- $options
- Filter options.
Returns
mixed
See
http://php.net/manual/en/function.filter-var.php
|
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
|