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

Represents an autoescape node. More...

+ Inheritance diagram for Twig_Node_AutoEscape:
+ Collaboration diagram for Twig_Node_AutoEscape:

Public Member Functions

 __construct ($value, Twig_NodeInterface $body, $lineno, $tag='autoescape')
 
 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 an autoescape node.

The value is the escaping strategy (can be html, js, ...)

The true value is equivalent to html.

If autoescaping is disabled, then the value is false.

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

Definition at line 23 of file AutoEscape.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Node_AutoEscape::__construct (   $value,
Twig_NodeInterface  $body,
  $lineno,
  $tag = 'autoescape' 
)

Definition at line 25 of file AutoEscape.php.

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

26  {
27  parent::__construct(array('body' => $body), array('value' => $value), $lineno, $tag);
28  }
$lineno
Definition: Node.php:22

Member Function Documentation

◆ compile()

Twig_Node_AutoEscape::compile ( Twig_Compiler  $compiler)

Compiles the node to PHP.

Implements Twig_NodeInterface.

Definition at line 30 of file AutoEscape.php.

References Twig_Node\getNode(), and Twig_Compiler\subcompile().

31  {
32  $compiler->subcompile($this->getNode('body'));
33  }
subcompile(Twig_NodeInterface $node, $raw=true)
Definition: Compiler.php:94
getNode($name)
Definition: Node.php:186
+ Here is the call graph for this function:

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