ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Exposes a template to userland. More...
Public Member Functions | |
__construct (Twig_Environment $env, Twig_Template $template) | |
This method is for internal use only and should never be called directly (use Twig_Environment::load() instead). More... | |
render ($context=array()) | |
Renders the template. More... | |
display ($context=array()) | |
Displays the template. More... | |
hasBlock ($name, $context=array()) | |
Checks if a block is defined. More... | |
getBlockNames ($context=array()) | |
Returns defined block names in the template. More... | |
renderBlock ($name, $context=array()) | |
Renders a template block. More... | |
displayBlock ($name, $context=array()) | |
Displays a template block. More... | |
getSourceContext () | |
Private Attributes | |
$env | |
$template | |
Exposes a template to userland.
Definition at line 17 of file TemplateWrapper.php.
Twig_TemplateWrapper::__construct | ( | Twig_Environment | $env, |
Twig_Template | $template | ||
) |
This method is for internal use only and should never be called directly (use Twig_Environment::load() instead).
Definition at line 28 of file TemplateWrapper.php.
References $env, and $template.
Twig_TemplateWrapper::display | ( | $context = array() | ) |
Displays the template.
array | $context | An array of parameters to pass to the template |
Definition at line 51 of file TemplateWrapper.php.
References $context.
Twig_TemplateWrapper::displayBlock | ( | $name, | |
$context = array() |
|||
) |
Displays a template block.
string | $name | The block name to render |
array | $context | An array of parameters to pass to the template |
Definition at line 119 of file TemplateWrapper.php.
References $context, and $name.
Twig_TemplateWrapper::getBlockNames | ( | $context = array() | ) |
Returns defined block names in the template.
array | $context | An array of parameters to pass to the template |
Definition at line 76 of file TemplateWrapper.php.
References $context.
Twig_TemplateWrapper::getSourceContext | ( | ) |
Definition at line 127 of file TemplateWrapper.php.
Twig_TemplateWrapper::hasBlock | ( | $name, | |
$context = array() |
|||
) |
Checks if a block is defined.
string | $name | The block name |
array | $context | An array of parameters to pass to the template |
Definition at line 64 of file TemplateWrapper.php.
References $context, and $name.
Twig_TemplateWrapper::render | ( | $context = array() | ) |
Renders the template.
array | $context | An array of parameters to pass to the template |
Definition at line 41 of file TemplateWrapper.php.
References $context.
Twig_TemplateWrapper::renderBlock | ( | $name, | |
$context = array() |
|||
) |
Renders a template block.
string | $name | The block name to render |
array | $context | An array of parameters to pass to the template |
Definition at line 89 of file TemplateWrapper.php.
References $context, and $name.
|
private |
Definition at line 19 of file TemplateWrapper.php.
Referenced by __construct().
|
private |
Definition at line 20 of file TemplateWrapper.php.
Referenced by __construct().