ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Node_Expression_TempName Class Reference
+ Inheritance diagram for Twig_Node_Expression_TempName:
+ Collaboration diagram for Twig_Node_Expression_TempName:

Public Member Functions

 __construct ($name, $lineno)
 
 compile (Twig_Compiler $compiler)
 Compiles the node to PHP. More...
 
- Public Member Functions inherited from Twig_Node
 __construct (array $nodes=array(), array $attributes=array(), $lineno=0, $tag=null)
 Constructor. More...
 
 __toString ()
 
 toXml ($asDom=false)
 
 compile (Twig_Compiler $compiler)
 Compiles the node to PHP. More...
 
 getTemplateLine ()
 
 getLine ()
 
 getNodeTag ()
 
 hasAttribute ($name)
 
 getAttribute ($name)
 
 setAttribute ($name, $value)
 
 removeAttribute ($name)
 
 hasNode ($name)
 
 getNode ($name)
 
 setNode ($name, $node=null)
 
 removeNode ($name)
 
 count ()
 
 getIterator ()
 
 setTemplateName ($name)
 
 getTemplateName ()
 
 setFilename ($name)
 
 getFilename ()
 

Additional Inherited Members

- Protected Attributes inherited from Twig_Node
 $nodes
 
 $attributes
 
 $lineno
 
 $tag
 

Detailed Description

Definition at line 11 of file TempName.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Node_Expression_TempName::__construct (   $name,
  $lineno 
)

Definition at line 13 of file TempName.php.

References Twig_Node\$lineno, and Twig_Node\$name.

14  {
15  parent::__construct(array(), array('name' => $name), $lineno);
16  }
$lineno
Definition: Node.php:22

Member Function Documentation

◆ compile()

Twig_Node_Expression_TempName::compile ( Twig_Compiler  $compiler)

Compiles the node to PHP.

Implements Twig_NodeInterface.

Definition at line 18 of file TempName.php.

References Twig_Node\getAttribute(), and Twig_Compiler\raw().

19  {
20  $compiler
21  ->raw('$_')
22  ->raw($this->getAttribute('name'))
23  ->raw('_')
24  ;
25  }
raw($string)
Adds a raw string to the compiled code.
Definition: Compiler.php:112
getAttribute($name)
Definition: Node.php:152
+ Here is the call graph for this function:

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