class Template

Template.

Properties

stdClass $global
protected string $contentType
protected array $params
protected FilterExecutor $filters
protected array $blocks
protected string|null|false $parentName
protected $blockQueue
protected $blockTypes

Methods

__construct(Engine $engine, array $params, FilterExecutor $filters, array $providers, $name)

No description

getEngine()

No description

string
getName()

No description

array
getParameters()

Returns array of all parameters.

mixed
getParameter($name)

Returns parameter.

string
getContentType()

No description

string|null
getParentName()

No description

Template|null
getReferringTemplate()

No description

string|null
getReferenceType()

No description

void
render()

Renders template.

createTemplate($name, array $params, $referenceType)

Renders template.

void
renderToContentType($mod)

No description

void
prepare()

No description

void
renderBlock($name, array $params, $mod = null)

Renders block.

void
renderBlockParent($name, array $params)

Renders parent block.

void
checkBlockContentType($current, $name)

No description

string
capture(callable $function)

Captures output to string.

setParameters(array $params) deprecated

No description

__call($name, $args) deprecated

No description

__set($name, $value) deprecated

No description

__get($name) deprecated

No description

__isset($name) deprecated

No description

__unset($name) deprecated

No description

Details

at line 58
__construct(Engine $engine, array $params, FilterExecutor $filters, array $providers, $name)

No description

Parameters

Engine $engine
array $params
FilterExecutor $filters
array $providers
$name

at line 75
Engine getEngine()

No description

Return Value

Engine

at line 84
string getName()

No description

Return Value

string

at line 94
array getParameters()

Returns array of all parameters.

Return Value

array

at line 104
mixed getParameter($name)

Returns parameter.

Parameters

$name

Return Value

mixed

at line 116
string getContentType()

No description

Return Value

string

at line 125
string|null getParentName()

No description

Return Value

string|null

at line 134
Template|null getReferringTemplate()

No description

Return Value

Template|null

at line 143
string|null getReferenceType()

No description

Return Value

string|null

at line 154
void render()

internal  
 

Renders template.

Return Value

void

at line 207
protected Template createTemplate($name, array $params, $referenceType)

internal  
 

Renders template.

Parameters

$name
array $params
$referenceType

Return Value

Template

at line 231
protected void renderToContentType($mod)

internal  
 

No description

Parameters

$mod

Return Value

void

at line 251
void prepare()

internal  
 

No description

Return Value

void

at line 267
protected void renderBlock($name, array $params, $mod = null)

internal  
 

Renders block.

Parameters

$name
array $params
$mod

Return Value

void

at line 291
protected void renderBlockParent($name, array $params)

internal  
 

Renders parent block.

Parameters

$name
array $params

Return Value

void

at line 305
protected void checkBlockContentType($current, $name)

internal  
 

No description

Parameters

$current
$name

Return Value

void

at line 321
string capture(callable $function)

internal  
 

Captures output to string.

Parameters

callable $function

Return Value

string

at line 340
setParameters(array $params) deprecated

deprecated

No description

Parameters

array $params

at line 352
__call($name, $args) deprecated

deprecated

No description

Parameters

$name
$args

at line 360
__set($name, $value) deprecated

deprecated

No description

Parameters

$name
$value

at line 368
__get($name) deprecated

deprecated

No description

Parameters

$name

at line 379
__isset($name) deprecated

deprecated

No description

Parameters

$name

at line 387
__unset($name) deprecated

deprecated

No description

Parameters

$name

Traits

Better OOP experience.