class Twig_TokenParser_For extends Twig_TokenParser
Loops over each item of a sequence.
<pre>
<ul>
{% for user in users %}
<li>{{ user.username|e }}</li>
{% endfor %}
</ul>
</pre>
Methods
|
setParser(Twig_Parser $parser)
Sets the parser associated with this token parser |
from Twig_TokenParser | |
| Twig_NodeInterface |
parse(Twig_Token $token)
Parses a token and returns a node. |
|
| decideForFork(Twig_Token $token) | ||
| decideForEnd(Twig_Token $token) | ||
| string |
getTag()
Gets the tag name associated with this token parser. |
Details
in Twig_TokenParser at line 30
public
setParser(Twig_Parser $parser)
Sets the parser associated with this token parser
at line 33
public Twig_NodeInterface
parse(Twig_Token $token)
Parses a token and returns a node.
at line 76
public
decideForFork(Twig_Token $token)
at line 81
public
decideForEnd(Twig_Token $token)
at line 132
public string
getTag()
Gets the tag name associated with this token parser.