ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Tests a condition. More...
Public Member Functions | |
parse (Twig_Token $token) | |
Parses a token and returns a node. More... | |
decideIfFork (Twig_Token $token) | |
decideIfEnd (Twig_Token $token) | |
getTag () | |
Gets the tag name associated with this token parser. More... | |
Public Member Functions inherited from Twig_TokenParser | |
setParser (Twig_Parser $parser) | |
Sets the parser associated with this token parser. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Twig_TokenParser | |
$parser | |
Tests a condition.
{% if users %}
Twig_TokenParser_If::decideIfEnd | ( | Twig_Token | $token | ) |
Definition at line 75 of file If.php.
References array, and Twig_Token\test().
Twig_TokenParser_If::decideIfFork | ( | Twig_Token | $token | ) |
Definition at line 70 of file If.php.
References array, and Twig_Token\test().
Twig_TokenParser_If::getTag | ( | ) |
Gets the tag name associated with this token parser.
Implements Twig_TokenParserInterface.
Definition at line 80 of file If.php.
Referenced by parse().
Twig_TokenParser_If::parse | ( | Twig_Token | $token | ) |
Parses a token and returns a node.
Twig_Error_Syntax |
Implements Twig_TokenParserInterface.
Definition at line 30 of file If.php.
References $end, GuzzleHttp\Psr7\$stream, array, Twig_Token\BLOCK_END_TYPE, Twig_Token\getLine(), and getTag().