ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
TwigTestTokenParser_§ Class Reference
+ Inheritance diagram for TwigTestTokenParser_§:
+ Collaboration diagram for TwigTestTokenParser_§:

Public Member Functions

 parse (Twig_Token $token)
 Parses a token and returns a node. More...
 
 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
 

Detailed Description

Definition at line 112 of file IntegrationTest.php.

Member Function Documentation

◆ getTag()

TwigTestTokenParser_§::getTag ( )

Gets the tag name associated with this token parser.

Returns
string The tag name

Implements Twig_TokenParserInterface.

Definition at line 121 of file IntegrationTest.php.

122  {
123  return '§';
124  }

◆ parse()

TwigTestTokenParser_§::parse ( Twig_Token  $token)

Parses a token and returns a node.

Returns
Twig_NodeInterface
Exceptions
Twig_Error_Syntax

Implements Twig_TokenParserInterface.

Definition at line 114 of file IntegrationTest.php.

References Twig_Token\BLOCK_END_TYPE.

115  {
116  $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);
117 
118  return new Twig_Node_Print(new Twig_Node_Expression_Constant('§', -1), -1);
119  }
Represents a node that outputs an expression.
Definition: Print.php:18
const BLOCK_END_TYPE
Definition: Token.php:30

The documentation for this class was generated from the following file: