ParameterBag
class ParameterBag implements IteratorAggregate, Countable
ParameterBag is a container for key/value pairs.
Properties
protected | $parameters | Parameter storage. |
Methods
No description
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.
Details
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.
bool
getBoolean(string $key, bool $default = false)
Returns the parameter value converted to boolean.