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

Public Member Functions

 compile (Twig_Compiler $compiler)
 Compiles the node to PHP. More...
 
- Public Member Functions inherited from Twig_Node_Expression_Name
 __construct ($name, $lineno)
 
 compile (Twig_Compiler $compiler)
 Compiles the node to PHP. More...
 
 isSpecial ()
 
 isSimple ()
 
- 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_Expression_Name
 $specialVars
 
- Protected Attributes inherited from Twig_Node
 $nodes
 
 $attributes
 
 $lineno
 
 $tag
 

Detailed Description

Definition at line 13 of file AssignName.php.

Member Function Documentation

◆ compile()

Twig_Node_Expression_AssignName::compile ( Twig_Compiler  $compiler)

Compiles the node to PHP.

Implements Twig_NodeInterface.

Definition at line 15 of file AssignName.php.

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

16  {
17  $compiler
18  ->raw('$context[')
19  ->string($this->getAttribute('name'))
20  ->raw(']')
21  ;
22  }
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: