Fully Qualified Name: | Laminas\View\Variables |
Extends: | ArrayObject |
Class for Laminas\View\Renderer\PhpRenderer to help enforce private constructs.
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Variables |
assign() | Assign many values at once | Variables |
clear() | Clear all variables | Variables |
isStrict() | Are we operating with strict variables? | Variables |
offsetGet() | Get the variable value | Variables |
setOptions() | Configure object | Variables |
setStrictVars() | Set status of "strict vars" flag | Variables |
Constructor
Parameter Name | Type | Description |
---|---|---|
$variables | array | |
$options | array |
Returns:
Assign many values at once
Parameter Name | Type | Description |
---|---|---|
$spec | array|object |
Returns: \Variables
Clear all variables
Returns: void
Are we operating with strict variables?
Returns: bool
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.
Parameter Name | Type | Description |
---|---|---|
$key | mixed |
Returns: mixed
Configure object
Parameter Name | Type | Description |
---|---|---|
$options | array |
Returns: \Variables
Set status of "strict vars" flag
Parameter Name | Type | Description |
---|---|---|
$flag | bool |
Returns: \Variables