canRenderTrees()
getEngine()
hasJsonpCallback()
mergeUnnamedChildren()
render()
setJsonpCallback()
setMergeUnnamedChildren()
setResolver()
injectChildren()
recurseModel()
$jsonpCallback
$mergeUnnamedChildren
$resolver
JSON renderer
canRenderTrees() : true
Yes.
true
getEngine() : mixed
If using a third-party template engine, such as Smarty, patTemplate, phplib, etc, return the template engine object. Useful for calling methods on these objects, such as for setting filters, modifiers, etc.
mixed
hasJsonpCallback() : bool
bool
mergeUnnamedChildren() : bool
bool
render(string | \Zend\View\Model\ModelInterface $nameOrModel, null | array | \ArrayAccess $values) : string
todo | Determine what use case exists for accepting both $nameOrModel and $values |
---|
nullarray\ArrayAccess
Values to use during rendering
\Zend\View\Exception\DomainException |
---|
string
The script output.setJsonpCallback(string $callback) : \Zend\View\Renderer\JsonRenderer
setMergeUnnamedChildren(bool $mergeUnnamedChildren) : \Zend\View\Renderer\JsonRenderer
setResolver(\Zend\View\Resolver\ResolverInterface $resolver) : \Zend\View\Renderer\RendererInterface
todo | Determine use case for resolvers when rendering JSON |
---|
\Zend\View\Resolver\ResolverInterface
injectChildren(\Zend\View\Model\ModelInterface $model, array $children)
todo | detect collisions and decide whether to append and/or aggregate? |
---|
array
recurseModel(\Zend\View\Model\ModelInterface $model, bool $mergeWithVariables) : array
bool
Whether or not to merge children with the variables of the $model
array
$jsonpCallback : string
$mergeUnnamedChildren : bool