ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
AutoEscape.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
24 {
25  public function __construct($value, Twig_NodeInterface $body, $lineno, $tag = 'autoescape')
26  {
27  parent::__construct(array('body' => $body), array('value' => $value), $lineno, $tag);
28  }
29 
30  public function compile(Twig_Compiler $compiler)
31  {
32  $compiler->subcompile($this->getNode('body'));
33  }
34 }
35 
36 class_alias('Twig_Node_AutoEscape', 'Twig\Node\AutoEscapeNode', false);
$lineno
Definition: Node.php:22
Represents a node in the AST.
Represents an autoescape node.
Definition: AutoEscape.php:23
subcompile(Twig_NodeInterface $node, $raw=true)
Definition: Compiler.php:94
Represents a node in the AST.
Definition: Node.php:18
__construct($value, Twig_NodeInterface $body, $lineno, $tag='autoescape')
Definition: AutoEscape.php:25
Create styles array
The data for the language used.
getNode($name)
Definition: Node.php:186
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Definition: AutoEscape.php:30