Abstract class for Zend_View 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
category Zend
package Zend_View

 Methods

Constructor

__construct(array $variables, array $options) 

Parameters

$variables

array

$options

array

append()

append() 

inherited_from ArrayObject::append()

asort()

asort() 

inherited_from ArrayObject::asort()

Assign many values at once

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

Parameters

$spec

arrayobject

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

Clear all variables

clear() : void

count()

count() 

inherited_from ArrayObject::count()

exchangeArray()

exchangeArray() 

inherited_from ArrayObject::exchangeArray()

getArrayCopy()

getArrayCopy() 

inherited_from ArrayObject::getArrayCopy()

getFlags()

getFlags() 

inherited_from ArrayObject::getFlags()

getIterator()

getIterator() 

inherited_from ArrayObject::getIterator()

getIteratorClass()

getIteratorClass() 

inherited_from ArrayObject::getIteratorClass()

Are we operating with strict variables?

isStrict() : bool

Returns

bool

ksort()

ksort() 

inherited_from ArrayObject::ksort()

natcasesort()

natcasesort() 

inherited_from ArrayObject::natcasesort()

natsort()

natsort() 

inherited_from ArrayObject::natsort()

offsetExists()

offsetExists() 

inherited_from ArrayObject::offsetExists()

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

offsetSet()

offsetSet() 

inherited_from ArrayObject::offsetSet()

offsetUnset()

offsetUnset() 

inherited_from ArrayObject::offsetUnset()

serialize()

serialize() 

inherited_from ArrayObject::serialize()

setFlags()

setFlags() 

inherited_from ArrayObject::setFlags()

setIteratorClass()

setIteratorClass() 

inherited_from ArrayObject::setIteratorClass()

Configure object

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

Parameters

$options

array

Returns

Set status of "strict vars" flag

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

Parameters

$flag

bool

Returns

uasort()

uasort() 

inherited_from ArrayObject::uasort()

uksort()

uksort() 

inherited_from ArrayObject::uksort()

unserialize()

unserialize() 

inherited_from ArrayObject::unserialize()

 Properties

 

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

$strictVars : bool