PhpEngineRenderer

Extends AbstractRenderer

PhpEngine template renderer

since

2.0.0

package

Joomla Framework

Methods

__construct

Constructor

__construct(\Symfony\Component\Templating\PhpEngine renderer) : 
since

2.0.0

Arguments

renderer

PhpEngineRendering engine

Response

mixed

getRenderer

Get the rendering engine

getRenderer() : \Symfony\Component\Templating\PhpEngine
since

2.0.0

Response

PhpEngine

pathExists

Checks if folder, folder alias, template or template path exists

pathExists( path) : 
since

2.0.0

Arguments

path

stringFull path or part of a path

Response

boolTrue if the path exists

render

Render and return compiled data.

render(string|\Symfony\Component\Templating\TemplateReferenceInterface template, mixed||string|int data = []) : 
since

2.0.0

Arguments

template

string|TemplateReferenceInterfaceA template name or a TemplateReferenceInterface instance

data

array<string|int, mixed>The data to pass to the template

Response

stringCompiled data

set

Sets a piece of data

set( key,  value) : 
inherited
since

2.0.0

Arguments

key

stringName of variable

value

stringValue of variable

Response

$this

setData

Loads data from array into the renderer

setData(mixed||string|int data) : 
inherited
since

2.0.0

Arguments

data

array<string|int, mixed>Array of variables

Response

$this

unsetData

Unloads data from renderer

unsetData() : 
inherited
since

2.0.0

Response

$this

Properties

data

Data for output by the renderer

inherited
since

2.0.0

Type(s)

array<string|int, mixed>

renderer

Rendering engine

since

2.0.0

Type(s)

PhpEngine