Class ConsoleRenderer

Summary

Fully Qualified Name: Laminas\View\Renderer\ConsoleRenderer
Implements: RendererInterface, TreeRendererInterface

Description

Class for Laminas\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

Name Description Defined By
__construct() Constructor. ConsoleRenderer
canRenderTrees() ConsoleRenderer
getEngine() Return the template engine object ConsoleRenderer
getFilterChain() Retrieve filter chain for post-filtering script content ConsoleRenderer
init() Allow custom object initialization when extending ConsoleRenderer ConsoleRenderer
render() Recursively processes all ViewModels and returns output. ConsoleRenderer
setFilterChain() Set filter chain ConsoleRenderer
setResolver() ConsoleRenderer

Method Details

__construct()

Constructor.

Parameter Name Type Description
$config array Configuration

Returns:

canRenderTrees()

Returns: bool

getEngine()

Return the template engine object

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

Returns: \ConsoleRenderer

getFilterChain()

Retrieve filter chain for post-filtering script content

Returns: \FilterChain

init()

Allow custom object initialization when extending ConsoleRenderer

Triggered by {@link __construct() the constructor} as its final action.

Returns: void

render()

Recursively processes all ViewModels and returns output.

Parameter Name Type Description
$model string|\ModelInterface A
$values null|array|\Traversable Values

Returns: string Console output.

setFilterChain()

Set filter chain

Parameter Name Type Description
$filters \FilterChain

Returns: \ConsoleRenderer

setResolver()

Parameter Name Type Description
$resolver

Returns: void

Top