$parameters
$parameters : array
Parameter storage.
ParameterBag is a container for key/value pairs.
get(string $path, mixed $default = null, boolean $deep = false) : mixed
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 |
getAlpha(string $key, mixed $default = '', boolean $deep = false) : string
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 |
The filtered value
getAlnum(string $key, mixed $default = '', boolean $deep = false) : string
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 |
The filtered value
getDigits(string $key, mixed $default = '', boolean $deep = false) : string
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 |
The filtered value
getInt(string $key, mixed $default, boolean $deep = false) : integer
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 |
The filtered value
getBoolean(string $key, mixed $default = false, boolean $deep = false) : boolean
Returns the parameter value converted to boolean.
| 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 |
The filtered value
filter(string $key, mixed $default = null, boolean $deep = false, integer $filter = FILTER_DEFAULT, mixed $options = array()) : mixed
Filter key.
| string | $key | Key. |
| mixed | $default | Default = null. |
| boolean | $deep | Default = false. |
| integer | $filter | FILTER_* constant. |
| mixed | $options | Filter options. |