29 $this->inAModule =
true;
30 $this->tags = array();
31 $this->filters = array();
32 $this->functions = array();
35 } elseif ($this->inAModule) {
43 $this->filters[$node->
getNode(
'filter')->getAttribute(
'value')] = $node;
53 $this->functions[
'range'] = $node;
68 $this->inAModule =
false;
82class_alias(
'Twig_NodeVisitor_Sandbox',
'Twig\NodeVisitor\SandboxNodeVisitor',
false);
An exception for terminatinating execution or to throw for unit testing.
Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2....
Stores the Twig configuration.
Twig_NodeVisitor_Sandbox implements sandboxing.
doEnterNode(Twig_Node $node, Twig_Environment $env)
Called before child nodes are visited.
getPriority()
Returns the priority for this visitor.
doLeaveNode(Twig_Node $node, Twig_Environment $env)
Called after child nodes are visited.
Represents a module node.
Represents a node that outputs an expression.
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and ...
Represents a node in the AST.
setNode($name, $node=null)