Class for Zend\View\Model\ConsoleModel 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.

 Methods

Constructor.

__construct(array $config) 

todo handle passing helper manager, options
todo handle passing filter chain, options
todo handle passing variables object, options
todo handle passing resolver object, options

Parameters

$config

array

Configuration key-value pairs.

Indicate whether the renderer is capable of rendering trees of view models

canRenderTrees() : bool

see \Zend\View\Renderer\TreeRendererInterface

Returns

bool

Return the template engine object

getEngine() : \Zend\View\Renderer\PhpRenderer

Returns the object instance, as it is its own template engine

Returns

Retrieve filter chain for post-filtering script content

getFilterChain() : \Zend\Filter\FilterChain

Allow custom object initialization when extending ConsoleRenderer

init() : void

Triggered by the constructor as its final action.

Recursively processes all ViewModels and returns output.

render(string | \Zend\View\Model\ModelInterface $model, null | array | \Traversable $values) : string

Parameters

$model

string\Zend\View\Model\ModelInterface

A ViewModel instance.

$values

nullarray\Traversable

Values to use when rendering. If none provided, uses those in the composed variables container.

Returns

stringConsole output.

Set filter chain

setFilterChain(\Zend\Filter\FilterChain $filters) : \Zend\View\Renderer\ConsoleRenderer

Set the resolver used to map a template name to a resource the renderer may consume.

setResolver(\Zend\View\Resolver\ResolverInterface $resolver) : \Zend\View\Renderer\RendererInterface

 Properties

 

$__filterChain

$__filterChain : \Zend\Filter\FilterChain