Class for Zend\View\Renderer\PhpRenderer to help enforce private constructs.

todo Allow specifying string names for manager, filter chain, variables
todo Move escaping into variables object
todo Move strict variables into variables object
package Default

 Methods

Constructor

__construct(array $variables = array(), array $options = array()

Parameters

$variables

array

$options

array

Assign many values at once

assign(array|object $spec) : \Zend\View\Variables

Parameters

$spec

arrayobject

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Variables

Clear all variables

clear() : void

Are we operating with strict variables?

isStrict() : boolean

Returns

boolean

Get the variable value

offsetGet(mixed $key) : mixed

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.

Parameters

$key

mixed

Returns

mixed

Configure object

setOptions(array $options) : \Zend\View\Variables

Parameters

$options

array

Returns

\Zend\View\Variables

Set status of "strict vars" flag

setStrictVars(boolean $flag) : \Zend\View\Variables

Parameters

$flag

boolean

Returns

\Zend\View\Variables

 Properties

 

Strict variables flag; when on, undefined variables accessed in the view scripts will trigger notices

$strictVars : boolean

Default

false