28 parent::__construct($node, $name, $arguments,
$lineno);
31 $node->setAttribute(
'is_defined_test',
true);
33 $node->setAttribute(
'is_defined_test',
true);
Compiles a node to PHP code.
Exception thrown when a syntax error occurs during lexing or parsing of a template.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
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))
setAttribute($name, $value)
Sets an attribute.
__construct(Twig_NodeInterface $node, $name, Twig_NodeInterface $arguments=null, $lineno)
subcompile(Twig_NodeInterface $node, $raw=true)
Checks if a variable is defined in the current context.
Represents a node in the AST.
changeIgnoreStrictCheck(Twig_Node_Expression_GetAttr $node)
getNode($name)
Gets a node by name.