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
36class_alias('Twig_Node_AutoEscape', 'Twig\Node\AutoEscapeNode', false);
An exception for terminatinating execution or to throw for unit testing.
Compiles a node to PHP code.
Definition: Compiler.php:19
subcompile(Twig_NodeInterface $node, $raw=true)
Definition: Compiler.php:94
Represents an autoescape node.
Definition: AutoEscape.php:24
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Definition: AutoEscape.php:30
__construct($value, Twig_NodeInterface $body, $lineno, $tag='autoescape')
Definition: AutoEscape.php:25
Represents a node in the AST.
Definition: Node.php:19
$lineno
Definition: Node.php:22
getNode($name)
Definition: Node.php:186
Represents a node in the AST.