TemplateWrapper
in package
Exposes a template to userland.
Tags
Table of Contents
- $env : mixed
- $template : mixed
- display() : mixed
- displayBlock() : mixed
- getBlockNames() : array<string|int, string>
- getSourceContext() : Source
- getTemplateName() : string
- hasBlock() : bool
- render() : string
- renderBlock() : string
Properties
$env
private
mixed
$env
$template
private
mixed
$template
Methods
display()
public
display([array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $context : array<string|int, mixed> = []
Return values
mixed —displayBlock()
public
displayBlock(string $name[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $name : string
- $context : array<string|int, mixed> = []
Return values
mixed —getBlockNames()
public
getBlockNames([array<string|int, mixed> $context = [] ]) : array<string|int, string>
Parameters
- $context : array<string|int, mixed> = []
Return values
array<string|int, string> —An array of defined template block names
getSourceContext()
public
getSourceContext() : Source
Return values
Source —getTemplateName()
public
getTemplateName() : string
Return values
string —hasBlock()
public
hasBlock(string $name[, array<string|int, mixed> $context = [] ]) : bool
Parameters
- $name : string
- $context : array<string|int, mixed> = []
Return values
bool —render()
public
render([array<string|int, mixed> $context = [] ]) : string
Parameters
- $context : array<string|int, mixed> = []
Return values
string —renderBlock()
public
renderBlock(string $name[, array<string|int, mixed> $context = [] ]) : string
Parameters
- $name : string
- $context : array<string|int, mixed> = []