$nodes
$nodes :
Checks if a variable is defined in the current context.
{# defined works with variable names and variable attributes #} {% if foo is defined %} {# ... #} {% endif %}
__construct(array $nodes = array(), array $attributes = array(), integer $lineno, string $tag = null)
Constructor.
The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']).
array | $nodes | An array of named nodes |
array | $attributes | An array of attributes (should not be nodes) |
integer | $lineno | The line number |
string | $tag | The tag name associated with the Node |
compile(\Twig_Compiler $compiler)
\Twig_Compiler | $compiler |
getNode( $name) : \Twig_Node
$name |
compileCallable(\Twig_Compiler $compiler)
\Twig_Compiler | $compiler |
compileArguments(\Twig_Compiler $compiler, $isArray = false)
\Twig_Compiler | $compiler | |
$isArray |
changeIgnoreStrictCheck(\Twig_Node_Expression_GetAttr $node)
\Twig_Node_Expression_GetAttr | $node |