PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions
Twig_TokenParser_Sandbox Class Reference

Marks a section of a template as untrusted code that must be evaluated in the sandbox mode. More...

Inheritance diagram for Twig_TokenParser_Sandbox:
Twig_TokenParser Twig_TokenParserInterface

Public Member Functions

 parse (Twig_Token $token)
 Parses a token and returns a node. More...
 
 decideBlockEnd (Twig_Token $token)
 
 getTag ()
 Gets the tag name associated with this token parser. More...
 
- Public Member Functions inherited from Twig_TokenParser
 setParser (Twig_Parser $parser)
 Sets the parser associated with this token parser. More...
 

Additional Inherited Members

- Protected Attributes inherited from Twig_TokenParser
 $parser
 

Detailed Description

Marks a section of a template as untrusted code that must be evaluated in the sandbox mode.

{% sandbox %}
    {% include 'user.html' %}
{% endsandbox %}
See also
http://www.twig-project.org/doc/api.html#sandbox-extension for details

Definition at line 23 of file Sandbox.php.

Member Function Documentation

decideBlockEnd ( Twig_Token  $token)

Definition at line 54 of file Sandbox.php.

getTag ( )

Gets the tag name associated with this token parser.

Returns
string The tag name

Implements Twig_TokenParserInterface.

Definition at line 64 of file Sandbox.php.

parse ( Twig_Token  $token)

Parses a token and returns a node.

Parameters
Twig_Token$tokenA Twig_Token instance
Returns
Twig_NodeInterface A Twig_NodeInterface instance

Implements Twig_TokenParserInterface.

Definition at line 32 of file Sandbox.php.


The documentation for this class 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.