Class Twig_Node_Module

InheritanceTwig_Node_Module » 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.

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 '' )
compile() public method

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

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

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

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

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

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

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

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

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

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

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

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

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

public void setIndex ( $index )