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

Represents a block call node. More...

+ Inheritance diagram for Twig_Node_BlockReference:
+ Collaboration diagram for Twig_Node_BlockReference:

Public Member Functions

 __construct ($name, $lineno, $tag=null)
 
 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

Represents a block call node.

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

Definition at line 18 of file BlockReference.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Node_BlockReference::__construct (   $name,
  $lineno,
  $tag = null 
)

Definition at line 20 of file BlockReference.php.

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

21  {
22  parent::__construct(array(), array('name' => $name), $lineno, $tag);
23  }
$lineno
Definition: Node.php:22

Member Function Documentation

◆ compile()

Twig_Node_BlockReference::compile ( Twig_Compiler  $compiler)

Compiles the node to PHP.

Implements Twig_NodeInterface.

Definition at line 25 of file BlockReference.php.

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

26  {
27  $compiler
28  ->addDebugInfo($this)
29  ->write(sprintf("\$this->displayBlock('%s', \$context, \$blocks);\n", $this->getAttribute('name')))
30  ;
31  }
getAttribute($name)
Definition: Node.php:152
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.
Definition: Compiler.php:212
+ Here is the call graph for this function:

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