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;
82 class_alias(
'Twig_NodeVisitor_Sandbox',
'Twig\NodeVisitor\SandboxNodeVisitor',
false);
doEnterNode(Twig_Node $node, Twig_Environment $env)
doLeaveNode(Twig_Node $node, Twig_Environment $env)
Represents a node in the AST.
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and ...
setNode($name, $node=null)
Represents a node that outputs an expression.
Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2...
Represents a module node.
getPriority()
Returns the priority for this visitor.
Stores the Twig configuration.
Twig_NodeVisitor_Sandbox implements sandboxing.