class ParameterBag
ParameterBag is a container for key/value pairs.
Methods
|
__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. |
||
|
get(string $path, mixed $default = null, boolean $deep = false)
Returns a parameter by name. |
||
|
set(string $key, mixed $value)
Sets a parameter by name. |
||
| Boolean |
has(string $key)
Returns true if the parameter is defined. |
|
|
remove(string $key)
Removes a parameter. |
||
| string |
getAlpha(string $key, mixed $default = '', boolean $deep = false)
Returns the alphabetic characters of the parameter value. |
|
| string |
getAlnum(string $key, mixed $default = '', boolean $deep = false)
Returns the alphabetic characters and digits of the parameter value. |
|
| string |
getDigits(string $key, mixed $default = '', boolean $deep = false)
Returns the digits of the parameter value. |
|
| integer |
getInt(string $key, mixed $default, boolean $deep = false)
Returns the parameter value converted to integer. |
Details
at line 32
public
__construct(array $parameters = array())
Constructor.
at line 44
public array
all()
Returns the parameters.
at line 56
public array
keys()
Returns the parameter keys.
at line 68
public
replace(array $parameters = array())
Replaces the current parameters by a new set.
at line 80
public
add(array $parameters = array())
Adds parameters.
at line 94
public
get(string $path, mixed $default = null, boolean $deep = false)
Returns a parameter by name.
at line 151
public
set(string $key, mixed $value)
Sets a parameter by name.
at line 165
public Boolean
has(string $key)
Returns true if the parameter is defined.
at line 177
public
remove(string $key)
Removes a parameter.
at line 193
public string
getAlpha(string $key, mixed $default = '', boolean $deep = false)
Returns the alphabetic characters of the parameter value.
at line 209
public string
getAlnum(string $key, mixed $default = '', boolean $deep = false)
Returns the alphabetic characters and digits of the parameter value.
at line 225
public string
getDigits(string $key, mixed $default = '', boolean $deep = false)
Returns the digits of the parameter value.
at line 241
public integer
getInt(string $key, mixed $default, boolean $deep = false)
Returns the parameter value converted to integer.