ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Interface implemented by token parsers. More...
Public Member Functions | |
setParser (Twig_Parser $parser) | |
Sets the parser associated with this token parser. More... | |
parse (Twig_Token $token) | |
Parses a token and returns a node. More... | |
getTag () | |
Gets the tag name associated with this token parser. More... | |
Interface implemented by token parsers.
Definition at line 17 of file TokenParserInterface.php.
Twig_TokenParserInterface::getTag | ( | ) |
Gets the tag name associated with this token parser.
Implemented in Twig_Tests_EnvironmentTest_TokenParser, TestTokenParser, Twig_TokenParser_For, TwigTestTokenParser_§, Twig_TokenParser_If, Twig_TokenParser_AutoEscape, Twig_TokenParser_Set, Twig_Extensions_TokenParser_Trans, Twig_TokenParser_Block, Twig_TokenParser_Use, Twig_TokenParser_Embed, Twig_TokenParser_From, Twig_TokenParser_Include, Twig_TokenParser_Sandbox, Twig_TokenParser_Macro, Twig_TokenParser_Filter, Twig_TokenParser_With, Twig_TokenParser_Spaceless, Twig_TokenParser_Extends, Twig_TokenParser_Import, SimpleTokenParser, Twig_TokenParser_Do, and Twig_TokenParser_Flush.
Referenced by Twig_TokenParserBroker\addTokenParser(), Twig_Extension_Staging\addTokenParser(), and Twig_TokenParserBroker\removeTokenParser().
Twig_TokenParserInterface::parse | ( | Twig_Token | $token | ) |
Parses a token and returns a node.
Twig_Error_Syntax |
Implemented in Twig_Tests_EnvironmentTest_TokenParser, TestTokenParser, TwigTestTokenParser_§, Twig_TokenParser_AutoEscape, Twig_TokenParser_Set, Twig_TokenParser_If, Twig_TokenParser_Use, Twig_TokenParser_Spaceless, Twig_TokenParser_For, Twig_TokenParser_Block, Twig_TokenParser_Sandbox, Twig_Extensions_SimpleTokenParser, Twig_TokenParser_Filter, Twig_TokenParser_Macro, Twig_TokenParser_Extends, Twig_TokenParser_Include, Twig_TokenParser_From, Twig_TokenParser_Import, JaimePerez\TwigConfigurableI18n\Twig\Extensions\TokenParser\Trans, Twig_TokenParser_Flush, Twig_TokenParser_With, Twig_TokenParser_Do, Twig_TokenParser_Embed, and Twig_Extensions_TokenParser_Trans.
Twig_TokenParserInterface::setParser | ( | Twig_Parser | $parser | ) |
Sets the parser associated with this token parser.
Implemented in Twig_TokenParser.