__call()
__clone()
__construct()
__get()
__isset()
__set()
__unset()
addTemplate()
canRenderTrees()
get()
getEngine()
getFilterChain()
getHelperPluginManager()
init()
plugin()
render()
resolver()
setCanRenderTrees()
setFilterChain()
setHelperPluginManager()
setResolver()
setVars()
vars()
$__content
$__file
$__filterChain
$__helpers
$__pluginCache
$__renderTrees
$__template
$__templateResolver
$__templates
$__vars
$__varsCache
Abstract class for Zend_View to help enforce private constructs.
Note: all private variables in this class are prefixed with "__". This is to mark them as part of the internal implementation, and thus prevent conflict with variables injected into the renderer.
__call(string $method, array $argv) : mixed
Proxies to the attached plugin manager to retrieve, return, and potentially execute helpers.
string
array
mixed__clone() : \Zend\View\Renderer\PhpRenderer
__construct(array $config)
| todo | handle passing helper plugin manager, options |
|---|---|
| todo | handle passing filter chain, options |
| todo | handle passing variables object, options |
| todo | handle passing resolver object, options |
arrayConfiguration key-value pairs.
__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
canRenderTrees() : bool
boolget(mixed $key) : mixed
mixed
mixedgetEngine() : \Zend\View\Renderer\PhpRenderer
Returns the object instance, as it is its own template engine
getFilterChain() : \Zend\Filter\FilterChain
getHelperPluginManager() : \Zend\View\HelperPluginManager
init() : void
Triggered by the constructor as its final action.
plugin(string $name, array $options) : \Zend\View\Helper\AbstractHelper
stringName of plugin to return
nullarrayOptions to pass to plugin constructor (if not already instantiated)
render(string | \Zend\View\Model\ModelInterface $nameOrModel, null | array | \Traversable $values) : string
string\Zend\View\Model\ModelInterfaceEither the template to use, or a ViewModel. The ViewModel must have the template as an option in order to be valid.
nullarray\TraversableValues to use when rendering. If none provided, uses those in the composed variables container.
\Zend\View\Exception\DomainException |
if a ViewModel is passed, but does not contain a template option. |
|---|---|
\Zend\View\Exception\InvalidArgumentException |
if the values passed are not an array or ArrayAccess object |
\Zend\View\Exception\RuntimeException |
if the template cannot be rendered |
stringThe script output.resolver(null | string $name) : string | \Zend\View\Resolver\ResolverInterface
setCanRenderTrees(bool $renderTrees) : \Zend\View\Renderer\PhpRenderer
If set to true, the View instance will not attempt to render children separately, but instead pass the root view model directly to the PhpRenderer. It is then up to the developer to render the children from within the view script.
bool
setFilterChain(\Zend\Filter\FilterChain $filters) : \Zend\View\Renderer\PhpRenderer
setHelperPluginManager(string | \Zend\View\HelperPluginManager $helpers) : \Zend\View\Renderer\PhpRenderer
string\Zend\View\HelperPluginManager
\Zend\View\Exception\InvalidArgumentException |
|---|
setResolver(\Zend\View\Resolver\ResolverInterface $resolver) : \Zend\View\Renderer\PhpRenderer
\Zend\View\Resolver\ResolverInterface
\Zend\View\Exception\InvalidArgumentException |
|---|
setVars(array | \ArrayAccess $variables) : \Zend\View\Renderer\PhpRenderer
Expects either an array, or an object implementing ArrayAccess.
array\ArrayAccess
\Zend\View\Exception\InvalidArgumentException |
|---|
vars(mixed $key) : mixed
mixed
mixed$__content : string
$__file : string
$__pluginCache : array
$__renderTrees : bool
$__template : null | string
$__templates : array
$__vars : \ArrayAccess | array
$__varsCache : array