Fully Qualified Name: | Laminas\View\Renderer\ConsoleRenderer |
Implements: | RendererInterface, TreeRendererInterface |
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.
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 |
Constructor.
Parameter Name | Type | Description |
---|---|---|
$config | array | Configuration |
Returns:
Returns: bool
Return the template engine object
Returns the object instance, as it is its own template engine
Returns: \ConsoleRenderer
Retrieve filter chain for post-filtering script content
Returns: \FilterChain
Allow custom object initialization when extending ConsoleRenderer
Triggered by {@link __construct() the constructor} as its final action.
Returns: void
Recursively processes all ViewModels and returns output.
Parameter Name | Type | Description |
---|---|---|
$model | string|\ModelInterface | A |
$values | null|array|\Traversable | Values |
Returns: string Console output.
Set filter chain
Parameter Name | Type | Description |
---|---|---|
$filters | \FilterChain |
Returns: \ConsoleRenderer
Parameter Name | Type | Description |
---|---|---|
$resolver |
Returns: void