Zend Framework
3.0
|
Class for Zend to help enforce private constructs. More...
Public Member Functions | |
__construct (array $variables=[], array $options=[]) | |
Constructor. | |
setOptions (array $options) | |
Configure object. | |
setStrictVars ($flag) | |
Set status of "strict vars" flag. | |
isStrict () | |
Are we operating with strict variables? | |
assign ($spec) | |
Assign many values at once. | |
offsetGet ($key) | |
Get the variable value. | |
clear () | |
Clear all variables. | |
Protected Attributes | |
$strictVars = false | |
Class for Zend to help enforce private constructs.
Allow specifying string names for manager, filter chain, variables
Move escaping into variables object
Move strict variables into variables object
__construct | ( | array | $variables = [] , |
array | $options = [] |
||
) |
Constructor.
array | $variables | |
array | $options |
assign | ( | $spec | ) |
Assign many values at once.
array | object | $spec |
Exception\InvalidArgumentException |
clear | ( | ) |
Clear all variables.
isStrict | ( | ) |
Are we operating with strict variables?
offsetGet | ( | $key | ) |
Get the variable value.
If the value has not been defined, a null value will be returned; if strict vars on in place, a notice will also be raised.
Otherwise, returns _escaped_ version of the value.
mixed | $key |
setOptions | ( | array | $options | ) |
setStrictVars | ( | $flag | ) |
|
protected |