Class Twig_TokenParser_Sandbox

InheritanceTwig_TokenParser_Sandbox » Twig_TokenParser
ImplementsTwig_TokenParserInterface

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.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
decideBlockEnd() Twig_TokenParser_Sandbox
getTag() Twig_TokenParser_Sandbox
parse() Twig_TokenParser_Sandbox
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Method Details

decideBlockEnd() public method

public void decideBlockEnd ( Twig_Token $token )
$token
getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )
$token