class Twig_Node_Module extends Twig_Node

Represents a module node.

Consider this class as being final. If you need to customize the behavior of the generated class, consider adding nodes to the following nodes: display_start, display_end, constructor_start, constructor_end, and class_end.

Properties

protected $nodes from Twig_Node
protected $attributes from Twig_Node
protected $lineno from Twig_Node
protected $tag from Twig_Node

Methods

__construct(Twig_Node $body, Twig_Node_Expression $parent = null, Twig_Node $blocks, Twig_Node $macros, Twig_Node $traits, $embeddedTemplates, Twig_Source $source)

Constructor.

__toString()

No description

from Twig_Node
compile(Twig_Compiler $compiler)

No description

getTemplateLine()

No description

from Twig_Node
getNodeTag()

No description

from Twig_Node
bool
hasAttribute($name)

No description

from Twig_Node
mixed
getAttribute($name)

No description

from Twig_Node
setAttribute(string $name, mixed $value)

No description

from Twig_Node
removeAttribute($name)

No description

from Twig_Node
bool
hasNode($name)

No description

from Twig_Node
getNode($name)

No description

from Twig_Node
setNode($name, Twig_Node $node)

No description

from Twig_Node
removeNode($name)

No description

from Twig_Node
count()

No description

from Twig_Node
getIterator()

No description

from Twig_Node
setTemplateName($name)

No description

from Twig_Node
getTemplateName()

No description

from Twig_Node
setIndex($index)

No description

compileTemplate(Twig_Compiler $compiler)

No description

compileGetParent(Twig_Compiler $compiler)

No description

compileClassHeader(Twig_Compiler $compiler)

No description

compileConstructor(Twig_Compiler $compiler)

No description

compileDisplay(Twig_Compiler $compiler)

No description

compileClassFooter(Twig_Compiler $compiler)

No description

compileMacros(Twig_Compiler $compiler)

No description

compileGetTemplateName(Twig_Compiler $compiler)

No description

compileIsTraitable(Twig_Compiler $compiler)

No description

compileDebugInfo(Twig_Compiler $compiler)

No description

compileGetSourceContext(Twig_Compiler $compiler)

No description

compileLoadTemplate(Twig_Compiler $compiler, $node, $var)

No description

Details

at line 28
__construct(Twig_Node $body, Twig_Node_Expression $parent = null, Twig_Node $blocks, Twig_Node $macros, Twig_Node $traits, $embeddedTemplates, Twig_Source $source)

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 $body
Twig_Node_Expression $parent
Twig_Node $blocks
Twig_Node $macros
Twig_Node $traits
$embeddedTemplates
Twig_Source $source

in Twig_Node at line 51
__toString()

at line 66
compile(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

in Twig_Node at line 86
getTemplateLine()

in Twig_Node at line 91
getNodeTag()

in Twig_Node at line 99
bool hasAttribute($name)

Parameters

$name

Return Value

bool

in Twig_Node at line 107
mixed getAttribute($name)

Parameters

$name

Return Value

mixed

in Twig_Node at line 120
setAttribute(string $name, mixed $value)

Parameters

string $name
mixed $value

in Twig_Node at line 125
removeAttribute($name)

Parameters

$name

in Twig_Node at line 133
bool hasNode($name)

Parameters

$name

Return Value

bool

in Twig_Node at line 141
Twig_Node getNode($name)

Parameters

$name

Return Value

Twig_Node

in Twig_Node at line 150
setNode($name, Twig_Node $node)

Parameters

$name
Twig_Node $node

in Twig_Node at line 155
removeNode($name)

Parameters

$name

in Twig_Node at line 160
count()

in Twig_Node at line 165
getIterator()

in Twig_Node at line 170
setTemplateName($name)

Parameters

$name

in Twig_Node at line 178
getTemplateName()

at line 61
setIndex($index)

Parameters

$index

at line 75
protected compileTemplate(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 113
protected compileGetParent(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 148
protected compileClassHeader(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 161
protected compileConstructor(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 300
protected compileDisplay(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 327
protected compileClassFooter(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 336
protected compileMacros(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 341
protected compileGetTemplateName(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 354
protected compileIsTraitable(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 406
protected compileDebugInfo(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 417
protected compileGetSourceContext(Twig_Compiler $compiler)

Parameters

Twig_Compiler $compiler

at line 434
protected compileLoadTemplate(Twig_Compiler $compiler, $node, $var)

Parameters

Twig_Compiler $compiler
$node
$var