IfTokenParser
extends AbstractTokenParser
in package
Tests a condition.
{% if users %}
-
{% for user in users %}
- {{ user.username|e }} {% endfor %}
Table of Contents
- $parser : Parser
- decideIfEnd() : mixed
- decideIfFork() : mixed
- getTag() : mixed
- parse() : mixed
- setParser() : mixed
- Sets the parser associated with this token parser.
Properties
$parser
protected
Parser
$parser
Methods
decideIfEnd()
public
decideIfEnd(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —decideIfFork()
public
decideIfFork(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —getTag()
public
getTag() : mixed
Return values
mixed —parse()
public
parse(Token $token) : mixed
Parameters
- $token : Token
Return values
mixed —setParser()
Sets the parser associated with this token parser.
public
setParser(Parser $parser) : mixed
Parameters
- $parser : Parser