__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
nullstringOptional; if specified, the "capture to" value to set on the child
nullboolOptional; if specified, append to child with the same capture
captureTo() : string
stringcount() : int
intgetChildren() : array
Return specifies an array, but may be any iterable object.
arraygetChildrenByCaptureTo(string $capture, bool $recursive) : array
string
boolsearch recursive through children, default true
arraygetOption(string $name, mixed | null $default) : mixed
stringThe option to get.
mixednull(optional) A default value if the option is not yet set.
mixedgetOptions() : array
arraygetTemplate() : string
stringgetVariable(string $name, mixed | null $default) : mixed
string
mixednull(optional) default value if the variable is not present.
mixedgetVariables() : array | \ArrayAccess | \Traversable
array\ArrayAccess\Traversable
hasChildren() : bool
boolisAppend() : bool
boolsetAppend(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
boolWhether 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