class Twig_Node_SetTemp extends Twig_Node
Methods
|
__construct($name, integer $lineno)
Constructor. |
||
| __toString() | from Twig_Node | |
| toXml($asDom = false) | from Twig_Node | |
|
compile(Twig_Compiler $compiler)
Compiles the node to PHP. |
||
| getLine() | from Twig_Node | |
| getNodeTag() | from Twig_Node | |
| Boolean |
hasAttribute(string $name)
Returns true if the attribute is defined. |
from Twig_Node |
| mixed |
getAttribute(string $name)
Gets an attribute. |
from Twig_Node |
|
setAttribute(string $name, mixed $value)
Sets an attribute. |
from Twig_Node | |
|
removeAttribute(string $name)
Removes an attribute. |
from Twig_Node | |
| Boolean |
hasNode(string $name)
Returns true if the node with the given identifier exists. |
from Twig_Node |
| Twig_Node |
getNode(string $name)
Gets a node by name. |
from Twig_Node |
|
setNode(string $name, Twig_Node $node = null)
Sets a node. |
from Twig_Node | |
|
removeNode(string $name)
Removes a node by name. |
from Twig_Node | |
| count() | from Twig_Node | |
| getIterator() | from Twig_Node |
Details
at line 14
public
__construct($name, integer $lineno)
Constructor.
The nodes are automatically made available as properties ($this->node).
The attributes are automatically made available as array items ($this['name']).
in Twig_Node at line 45
public
__toString()
in Twig_Node at line 73
public
toXml($asDom = false)
at line 19
public
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
in Twig_Node at line 110
public
getLine()
in Twig_Node at line 115
public
getNodeTag()
in Twig_Node at line 127
public Boolean
hasAttribute(string $name)
Returns true if the attribute is defined.
in Twig_Node at line 139
public mixed
getAttribute(string $name)
Gets an attribute.
in Twig_Node at line 154
public
setAttribute(string $name, mixed $value)
Sets an attribute.
in Twig_Node at line 164
public
removeAttribute(string $name)
Removes an attribute.
in Twig_Node at line 176
public Boolean
hasNode(string $name)
Returns true if the node with the given identifier exists.
in Twig_Node at line 188
public Twig_Node
getNode(string $name)
Gets a node by name.
in Twig_Node at line 203
public
setNode(string $name, Twig_Node $node = null)
Sets a node.
in Twig_Node at line 213
public
removeNode(string $name)
Removes a node by name.