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

Public Member Functions

 __construct ($name)
 
 setParser (Twig_Parser $parser)
 
 getName ()
 
- Public Member Functions inherited from Twig_Extensions_GrammarInterface
 parse (Twig_Token $token)
 

Protected Attributes

 $name
 
 $parser
 

Detailed Description

Deprecated:
since version 1.5

Definition at line 15 of file Grammar.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Extensions_Grammar::__construct (   $name)
Parameters
string$name

Definition at line 23 of file Grammar.php.

References $name.

24  {
25  $this->name = $name;
26  }

Member Function Documentation

◆ getName()

Twig_Extensions_Grammar::getName ( )
Returns
string

Implements Twig_Extensions_GrammarInterface.

Definition at line 39 of file Grammar.php.

References $name.

Referenced by Twig_Extensions_Grammar_Optional\parse().

40  {
41  return $this->name;
42  }
+ Here is the caller graph for this function:

◆ setParser()

Twig_Extensions_Grammar::setParser ( Twig_Parser  $parser)
Parameters
Twig_Parser$parser

Implements Twig_Extensions_GrammarInterface.

Definition at line 31 of file Grammar.php.

References $parser.

32  {
33  $this->parser = $parser;
34  }

Field Documentation

◆ $name

◆ $parser

Twig_Extensions_Grammar::$parser
protected

Definition at line 18 of file Grammar.php.

Referenced by setParser().


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