Properties

$nodes

$nodes : 

Type

$attributes

$attributes : 

Type

$lineno

$lineno : 

Type

$tag

$tag : 

Type

$name

$name : 

Type

Methods

__construct()

__construct(\Twig_Node_Expression  $expr, \Twig_Node_Expression  $variables = null,   $only = false,   $ignoreMissing = false, 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']).

Parameters

\Twig_Node_Expression $expr
\Twig_Node_Expression $variables
$only
$ignoreMissing
integer $lineno

The line number

string $tag

The tag name associated with the Node

__toString()

__toString() 

compile()

compile(\Twig_Compiler  $compiler) 

Parameters

\Twig_Compiler $compiler

getTemplateLine()

getTemplateLine() 

getNodeTag()

getNodeTag() 

hasAttribute()

hasAttribute(  $name) : boolean

Parameters

$name

Returns

boolean

getAttribute()

getAttribute(  $name) : mixed

Parameters

$name

Returns

mixed

setAttribute()

setAttribute(string  $name, mixed  $value) 

Parameters

string $name
mixed $value

removeAttribute()

removeAttribute(  $name) 

Parameters

$name

hasNode()

hasNode(  $name) : boolean

Parameters

$name

Returns

boolean

getNode()

getNode(  $name) : \Twig_Node

Parameters

$name

Returns

\Twig_Node

setNode()

setNode(  $name, self  $node) 

Parameters

$name
self $node

removeNode()

removeNode(  $name) 

Parameters

$name

count()

count() 

getIterator()

getIterator() 

setTemplateName()

setTemplateName(  $name) 

Parameters

$name

getTemplateName()

getTemplateName() 

addGetTemplate()

addGetTemplate(\Twig_Compiler  $compiler) 

Parameters

\Twig_Compiler $compiler

addTemplateArguments()

addTemplateArguments(\Twig_Compiler  $compiler) 

Parameters

\Twig_Compiler $compiler