35 $this->inAModule =
true;
36 $this->tags = array();
37 $this->filters = array();
38 $this->functions = array();
41 }
elseif ($this->inAModule) {
49 $this->filters[] = $node->getNode(
'filter')->getAttribute(
'value');
54 $this->functions[] = $node->getAttribute(
'name');
77 $this->inAModule =
false;
79 return new Twig_Node_SandboxedModule($node, array_unique($this->filters), array_unique($this->tags), array_unique($this->functions));
enterNode(Twig_NodeInterface $node, Twig_Environment $env)
Called before child nodes are visited.
Represents a module node.
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and ...
Twig_NodeVisitor_Sandbox implements sandboxing.
leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
Called after child nodes are visited.
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
getPriority()
{Returns the priority for this visitor.Priority should be between -10 and 10 (0 is the default)...
Represents a module node.
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
Represents a node in the AST.
Stores the Twig configuration.
Represents a node that outputs an expression.