ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_TokenParser Class Reference

Base class for all token parsers. More...

+ Inheritance diagram for Twig_TokenParser:
+ Collaboration diagram for Twig_TokenParser:

Public Member Functions

 setParser (Twig_Parser $parser)
 Sets the parser associated with this token parser. More...
 
- Public Member Functions inherited from Twig_TokenParserInterface
 parse (Twig_Token $token)
 Parses a token and returns a node. More...
 
 getTag ()
 Gets the tag name associated with this token parser. More...
 

Protected Attributes

 $parser
 

Detailed Description

Base class for all token parsers.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 17 of file TokenParser.php.

Member Function Documentation

◆ setParser()

Twig_TokenParser::setParser ( Twig_Parser  $parser)

Sets the parser associated with this token parser.

Implements Twig_TokenParserInterface.

Definition at line 27 of file TokenParser.php.

References $parser.

28  {
29  $this->parser = $parser;
30  }

Field Documentation

◆ $parser

Twig_TokenParser::$parser
protected

Definition at line 22 of file TokenParser.php.

Referenced by setParser().


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