class ParameterBag implements IteratorAggregate, Countable
ParameterBag is a container for key/value pairs.
__construct(array $parameters = array()) Constructor. | ||
array | all() Returns the parameters. | |
array | keys() Returns the parameter keys. | |
replace(array $parameters = array()) Replaces the current parameters by a new set. | ||
add(array $parameters = array()) Adds parameters. | ||
mixed | get(string $key, mixed $default = null) Returns a parameter by name. | |
set(string $key, mixed $value) Sets a parameter by name. | ||
bool | has(string $key) Returns true if the parameter is defined. | |
remove(string $key) Removes a parameter. | ||
string | getAlpha(string $key, string $default = '') Returns the alphabetic characters of the parameter value. | |
string | getAlnum(string $key, string $default = '') Returns the alphabetic characters and digits of the parameter value. | |
string | getDigits(string $key, string $default = '') Returns the digits of the parameter value. | |
int | getInt(string $key, int $default) Returns the parameter value converted to integer. | |
bool | getBoolean(string $key, mixed $default = false) Returns the parameter value converted to boolean. | |
mixed | filter(string $key, mixed $default = null, int $filter = FILTER_DEFAULT, mixed $options = array()) Filter key. | |
ArrayIterator | getIterator() Returns an iterator for parameters. | |
int | count() Returns the number of parameters. |
Constructor.
Returns the parameters.
Returns the parameter keys.
Replaces the current parameters by a new set.
Adds parameters.
Returns a parameter by name.
Sets a parameter by name.
Returns true if the parameter is defined.
Removes a parameter.
Returns the alphabetic characters of the parameter value.
Returns the alphabetic characters and digits of the parameter value.
Returns the digits of the parameter value.
Returns the parameter value converted to integer.
Returns the parameter value converted to boolean.
Filter key.
Returns an iterator for parameters.
Returns the number of parameters.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/HttpFoundation/ParameterBag.html