addChild()
captureTo()
getChildren()
getOptions()
getTemplate()
getVariable()
getVariables()
hasChildren()
isAppend()
setAppend()
setCaptureTo()
setOption()
setOptions()
setTemplate()
setTerminal()
setVariable()
setVariables()
terminate()
Interface describing a view model.
Extends "Countable"; count() should return the number of children attached to the model.
Extends "IteratorAggregate"; should allow iterating over children.
addChild(\Zend\View\Model\ModelInterface $child, null | string $captureTo, null | bool $append) : \Zend\View\Model\ModelInterface
nullstring
Optional; if specified, the "capture to" value to set on the child
nullbool
Optional; if specified, append to child with the same capture
captureTo() : string
string
getChildren() : array
Return specifies an array, but may be any iterable object.
array
getOptions() : array | \Traversable
array
\Traversable
getTemplate() : string
string
getVariable(string $name, mixed | null $default) : mixed
string
mixednull
(optional) default value if the variable is not present.
mixed
getVariables() : array | \ArrayAccess
array
\ArrayAccess
hasChildren() : bool
bool
isAppend() : bool
bool
setAppend(bool $append) : \Zend\View\Model\ModelInterface
setCaptureTo(string $capture) : \Zend\View\Model\ModelInterface
setOptions(array | \Traversable $options) : \Zend\View\Model\ModelInterface
setTemplate(string $template) : \Zend\View\Model\ModelInterface
setTerminal(bool $terminate) : \Zend\View\Model\ModelInterface
setVariables(array | \ArrayAccess $variables) : \Zend\View\Model\ModelInterface
terminate() : bool
bool