Elgg
Version 1.10
|
Public Member Functions | |
__construct (array $parameters=array()) | |
Constructor. More... | |
all () | |
Returns the parameters. More... | |
keys () | |
Returns the parameter keys. More... | |
replace (array $parameters=array()) | |
Replaces the current parameters by a new set. More... | |
add (array $parameters=array()) | |
Adds parameters. More... | |
get ($path, $default=null, $deep=false) | |
Returns a parameter by name. More... | |
set ($key, $value) | |
Sets a parameter by name. More... | |
has ($key) | |
Returns true if the parameter is defined. More... | |
remove ($key) | |
Removes a parameter. More... | |
getAlpha ($key, $default= '', $deep=false) | |
Returns the alphabetic characters of the parameter value. More... | |
getAlnum ($key, $default= '', $deep=false) | |
Returns the alphabetic characters and digits of the parameter value. More... | |
getDigits ($key, $default= '', $deep=false) | |
Returns the digits of the parameter value. More... | |
getInt ($key, $default=0, $deep=false) | |
Returns the parameter value converted to integer. More... | |
filter ($key, $default=null, $deep=false, $filter=FILTER_DEFAULT, $options=array()) | |
Filter key. More... | |
getIterator () | |
Returns an iterator for parameters. More... | |
count () | |
Returns the number of parameters. More... | |
Protected Attributes | |
$parameters | |
Definition at line 36 of file ParameterBag.php.
Elgg\Http\ParameterBag::__construct | ( | array | $parameters = array() | ) |
Constructor.
array | $parameters | An array of parameters |
Definition at line 50 of file ParameterBag.php.
Elgg\Http\ParameterBag::add | ( | array | $parameters = array() | ) |
Adds parameters.
array | $parameters | An array of parameters |
Definition at line 88 of file ParameterBag.php.
Elgg\Http\ParameterBag::all | ( | ) |
Returns the parameters.
Definition at line 59 of file ParameterBag.php.
Elgg\Http\ParameterBag::count | ( | ) |
Returns the number of parameters.
Definition at line 280 of file ParameterBag.php.
Elgg\Http\ParameterBag::filter | ( | $key, | |
$default = null , |
|||
$deep = false , |
|||
$filter = FILTER_DEFAULT , |
|||
$options = array() |
|||
) |
Filter key.
string | $key | Key. |
mixed | $default | Default = null. |
boolean | $deep | Default = false. |
integer | $filter | FILTER_* constant. |
mixed | $options | Filter options. |
Definition at line 250 of file ParameterBag.php.
Elgg\Http\ParameterBag::get | ( | $path, | |
$default = null , |
|||
$deep = false |
|||
) |
Returns a parameter by name.
string | $path | The key |
mixed | $default | The default value if the parameter key does not exist |
boolean | $deep | If true, a path like foo[bar] will find deeper items |
Definition at line 104 of file ParameterBag.php.
Elgg\Http\ParameterBag::getAlnum | ( | $key, | |
$default = '' , |
|||
$deep = false |
|||
) |
Returns the alphabetic characters and digits of the parameter value.
string | $key | The parameter key |
mixed | $default | The default value if the parameter key does not exist |
boolean | $deep | If true, a path like foo[bar] will find deeper items |
Definition at line 206 of file ParameterBag.php.
Elgg\Http\ParameterBag::getAlpha | ( | $key, | |
$default = '' , |
|||
$deep = false |
|||
) |
Returns the alphabetic characters of the parameter value.
string | $key | The parameter key |
mixed | $default | The default value if the parameter key does not exist |
boolean | $deep | If true, a path like foo[bar] will find deeper items |
Definition at line 193 of file ParameterBag.php.
Elgg\Http\ParameterBag::getDigits | ( | $key, | |
$default = '' , |
|||
$deep = false |
|||
) |
Returns the digits of the parameter value.
string | $key | The parameter key |
mixed | $default | The default value if the parameter key does not exist |
boolean | $deep | If true, a path like foo[bar] will find deeper items |
Definition at line 219 of file ParameterBag.php.
Elgg\Http\ParameterBag::getInt | ( | $key, | |
$default = 0 , |
|||
$deep = false |
|||
) |
Returns the parameter value converted to integer.
string | $key | The parameter key |
mixed | $default | The default value if the parameter key does not exist |
boolean | $deep | If true, a path like foo[bar] will find deeper items |
Definition at line 233 of file ParameterBag.php.
Elgg\Http\ParameterBag::getIterator | ( | ) |
Elgg\Http\ParameterBag::has | ( | $key | ) |
Returns true if the parameter is defined.
string | $key | The key |
Definition at line 170 of file ParameterBag.php.
Elgg\Http\ParameterBag::keys | ( | ) |
Returns the parameter keys.
Definition at line 68 of file ParameterBag.php.
Elgg\Http\ParameterBag::remove | ( | $key | ) |
Removes a parameter.
string | $key | The key |
Definition at line 180 of file ParameterBag.php.
Elgg\Http\ParameterBag::replace | ( | array | $parameters = array() | ) |
Replaces the current parameters by a new set.
array | $parameters | An array of parameters |
Definition at line 78 of file ParameterBag.php.
Elgg\Http\ParameterBag::set | ( | $key, | |
$value | |||
) |
Sets a parameter by name.
string | $key | The key |
mixed | $value | The value |
Definition at line 159 of file ParameterBag.php.
|
protected |
Definition at line 43 of file ParameterBag.php.