Class Twig_Node_For

InheritanceTwig_Node_For » Twig_Node

Represents a for node.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Twig_Node_For
__toString() Twig_Node
compile() Twig_Node_For
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
setNode() Sets a node. Twig_Node
toXml() Twig_Node

Property Details

$loop protected property
protected $loop null

Method Details

__construct() public method

public void __construct ( Twig_Node_Expression_AssignName $keyTarget, Twig_Node_Expression_AssignName $valueTarget, Twig_Node_Expression $seq, Twig_Node_Expression $ifexpr null, Twig_NodeInterface $body, Twig_NodeInterface $else null, $lineno, $tag null )
compile() public method

public void compile ( Twig_Compiler $compiler )