PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Data Fields
Twig_TemplateInterface Interface Reference

Interface implemented by all compiled templates. More...

Inheritance diagram for Twig_TemplateInterface:
Twig_Template

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

Definition at line 18 of file TemplateInterface.php.

Member Function Documentation

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 ( )

Returns the bound environment for this template.

Returns
Twig_Environment The current environment

Implemented in Twig_Template.

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

const ANY_CALL = 'any'

Definition at line 20 of file TemplateInterface.php.

const ARRAY_CALL = 'array'

Definition at line 21 of file TemplateInterface.php.

const METHOD_CALL = 'method'

Definition at line 22 of file TemplateInterface.php.


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

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:45 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.