__construct()
__get()
__isset()
__set()
__unset()
addChild()
captureTo()
clearChildren()
clearOptions()
clearVariables()
count()
getChildren()
getChildrenByCaptureTo()
getIterator()
getOption()
getOptions()
getTemplate()
getVariable()
getVariables()
hasChildren()
isAppend()
setAppend()
setCaptureTo()
setOption()
setOptions()
setTemplate()
setTerminal()
setVariable()
setVariables()
terminate()
$append
$captureTo
$children
$options
$template
$terminate
$variables
__construct(null | array | \Traversable $variables, array | \Traversable $options)
nullarray\Traversable
array\Traversable
__get(string $name) : mixed
string
mixed
__isset(string $name) : bool
string
bool
__set(string $name, mixed $value) : void
string
mixed
__unset(string $name) : void
string
addChild(\Zend\View\Model\ModelInterface $child, null | string $captureTo, null | bool $append) : \Zend\View\Model\ViewModel
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
count() : int
int
getChildren() : array
Return specifies an array, but may be any iterable object.
array
getChildrenByCaptureTo(string $capture, bool $recursive) : array
string
bool
search recursive through children, default true
array
getOption(string $name, mixed | null $default) : mixed
string
The option to get.
mixednull
(optional) A default value if the option is not yet set.
mixed
getOptions() : array
array
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 | \Traversable
array
\ArrayAccess
\Traversable
hasChildren() : bool
bool
isAppend() : bool
bool
setAppend(bool $append) : \Zend\View\Model\ViewModel
setCaptureTo(string $capture) : \Zend\View\Model\ViewModel
setOptions(array | \Traversable $options) : \Zend\View\Model\ViewModel
array\Traversable
\Zend\View\Exception\InvalidArgumentException |
---|
setTemplate(string $template) : \Zend\View\Model\ViewModel
setTerminal(bool $terminate) : \Zend\View\Model\ViewModel
setVariables(array | \ArrayAccess | \Traversable $variables, bool $overwrite) : \Zend\View\Model\ViewModel
Can be an array or a Traversable + ArrayAccess object.
array\ArrayAccess\Traversable
bool
Whether or not to overwrite the internal container with $variables
\Zend\View\Exception\InvalidArgumentException |
---|
terminate() : bool
bool
$append : bool
$captureTo : string
$children : array
$template : string
$terminate : bool
$variables : array | \Zend\View\Model\ArrayAccessTraversable