Class Twig_Node_Module

InheritanceTwig_Node_Module » Twig_Node
ImplementsTwig_NodeInterface

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.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$attributes Twig_Node
$lineno Twig_Node
$nodes Twig_Node
$tag Twig_Node

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Twig_Node_Module
__toString() Twig_Node
compile() Twig_Node_Module
count() Twig_Node
getAttribute() Gets an attribute value by name. Twig_Node
getFilename() Twig_Node
getIterator() Twig_Node
getLine() Twig_Node
getNode() Gets a node by name. Twig_Node
getNodeTag() Twig_Node
hasAttribute() Returns true if the attribute is defined. Twig_Node
hasNode() Returns true if the node with the given name exists. Twig_Node
removeAttribute() Removes an attribute by name. Twig_Node
removeNode() Removes a node by name. Twig_Node
setAttribute() Sets an attribute by name to a value. Twig_Node
setFilename() Twig_Node
setIndex() Twig_Node_Module
setNode() Sets a node. Twig_Node
toXml() Twig_Node

Method Details

__construct() public method

public void __construct ( Twig_NodeInterface $body, Twig_Node_Expression $parent null, Twig_NodeInterface $blocks, Twig_NodeInterface $macros, Twig_NodeInterface $traits, $embeddedTemplates, $filename, $source '' )
$body
$parent
$blocks
$macros
$traits
$embeddedTemplates
$filename
$source
compile() public method

public void compile ( Twig_Compiler $compiler )
$compiler
compileClassFooter() protected method

protected void compileClassFooter ( Twig_Compiler $compiler )
$compiler
compileClassHeader() protected method

protected void compileClassHeader ( Twig_Compiler $compiler )
$compiler
compileConstructor() protected method

protected void compileConstructor ( Twig_Compiler $compiler )
$compiler
compileDebugInfo() protected method

protected void compileDebugInfo ( Twig_Compiler $compiler )
$compiler
compileDisplay() protected method

protected void compileDisplay ( Twig_Compiler $compiler )
$compiler
compileGetParent() protected method

protected void compileGetParent ( Twig_Compiler $compiler )
$compiler
compileGetSource() protected method

protected void compileGetSource ( Twig_Compiler $compiler )
$compiler
compileGetTemplateName() protected method

protected void compileGetTemplateName ( Twig_Compiler $compiler )
$compiler
compileIsTraitable() protected method

protected void compileIsTraitable ( Twig_Compiler $compiler )
$compiler
compileLoadTemplate() protected method

protected void compileLoadTemplate ( Twig_Compiler $compiler, $node, $var )
$compiler
$node
$var
compileMacros() protected method

protected void compileMacros ( Twig_Compiler $compiler )
$compiler
compileTemplate() protected method

protected void compileTemplate ( Twig_Compiler $compiler )
$compiler
setIndex() public method

public void setIndex ( $index )
$index