ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_TemplateInterface Interface Reference

Interface implemented by all compiled templates. More...

+ Inheritance diagram for Twig_TemplateInterface:
+ Collaboration diagram for Twig_TemplateInterface:

Public Member Functions

 render (array $context)
 Renders the template with the given context and returns it as string. More...
 
 display (array $context, array $blocks=array())
 Displays the template with the given context. More...
 
 getEnvironment ()
 Returns the bound environment for this template. More...
 

Data Fields

const ANY_CALL = 'any'
 
const ARRAY_CALL = 'array'
 
const METHOD_CALL = 'method'
 

Detailed Description

Interface implemented by all compiled templates.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Deprecated:
since 1.12 (to be removed in 3.0)

Definition at line 19 of file TemplateInterface.php.

Member Function Documentation

◆ display()

Twig_TemplateInterface::display ( array  $context,
array  $blocks = array() 
)

Displays the template with the given context.

Parameters
array$contextAn array of parameters to pass to the template
array$blocksAn array of blocks to pass to the template

Implemented in Twig_Template.

◆ getEnvironment()

Twig_TemplateInterface::getEnvironment ( )

Returns the bound environment for this template.

Returns
Twig_Environment

Implemented in Twig_Template.

◆ render()

Twig_TemplateInterface::render ( array  $context)

Renders the template with the given context and returns it as string.

Parameters
array$contextAn array of parameters to pass to the template
Returns
string The rendered template

Implemented in Twig_Template.

Field Documentation

◆ ANY_CALL

◆ ARRAY_CALL

◆ METHOD_CALL


The documentation for this interface was generated from the following file: