Template
class Template
Template.
Constants
LayerTop |
|
LayerSnippet |
|
LayerLocal |
|
ContentType |
|
Source |
|
Blocks |
|
Properties
$global | global accumulators for intermediate results |
||
protected array | $params | ||
protected | $filters | ||
protected internal | $parentName | ||
protected array[] | $varStack | ||
protected Block[][] | $blocks |
Methods
No description
No description
Returns array of all parameters.
No description
No description
No description
No description
Renders template.
Renders template.
No description
No description
No description
Renders block.
Renders parent block.
Creates block if doesn't exist and checks if content type is the same.
Captures output to string.
No description
No description
No description
No description
Details
at line 62
__construct(Engine $engine, array $params, FilterExecutor $filters, stdClass $providers, string $name)
No description
at line 80
Engine
getEngine()
No description
at line 86
string
getName()
No description
at line 96
array
getParameters()
Returns array of all parameters.
at line 105
array
getBlockNames(int|string $layer = self::LayerTop)
No description
at line 111
string|null
getParentName()
No description
at line 117
Template|null
getReferringTemplate()
No description
at line 123
string|null
getReferenceType()
No description
at line 133
void
render(string|null $block = null)
internal |
Renders template.
at line 168
Template
createTemplate(string $name, array $params, string $referenceType)
internal |
Renders template.
at line 198
void
renderToContentType(string|Closure|null $mod, string|null $block = null)
internal |
No description
at line 210
array
prepare()
No description
at line 217
void
main(array $params)
No description
at line 231
void
renderBlock(string $name, array $params, string|Closure|null $mod = null, int|string|null $layer = null)
internal |
Renders block.
at line 264
void
renderBlockParent(string $name, array $params)
internal |
Renders parent block.
at line 280
protected void
addBlock(string $name, string $contentType, array $functions, int|string|null $layer = null)
internal |
Creates block if doesn't exist and checks if content type is the same.
at line 332
string
capture(callable $function)
internal |
Captures output to string.
at line 356
protected void
enterBlockLayer(int $staticId, array $vars)
No description
at line 364
protected void
copyBlockLayer()
No description
at line 372
protected void
leaveBlockLayer()
No description
at line 379
bool
hasBlock(string $name)
No description