Parameters
class Parameters implements Countable, IteratorAggregate
Parameters.
Properties
protected array | $parameters | Parameters. |
Methods
Constructor.
Returns the numner of items in the collection.
Retruns an array iterator object.
Adds a parameter.
Returns TRUE if the parameter exists and FALSE if not.
Gets a parameter value.
Removes a parameter.
Returns all the parameters.
Returns request data where keys not in the whitelist have been removed.
Returns request data where keys in the blacklist have been removed.
Details
at line 37
__construct(array $parameters = [])
Constructor.
at line 47
int
count()
Returns the numner of items in the collection.
at line 57
ArrayIterator
getIterator()
Retruns an array iterator object.
at line 68
add(string $name, mixed $value)
Adds a parameter.
at line 79
bool
has(string $name)
Returns TRUE if the parameter exists and FALSE if not.
at line 91
mixed
get(string $name, mixed $default = null)
Gets a parameter value.
at line 101
remove(string $name)
Removes a parameter.
at line 111
array
all()
Returns all the parameters.
at line 123
array
whitelisted(array $keys, array $defaults = [])
Returns request data where keys not in the whitelist have been removed.
at line 135
array
blacklisted(array $keys, array $defaults = [])
Returns request data where keys in the blacklist have been removed.