\Twig_Node_AutoEscape
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 <fabien@symfony.com>
Synopsis
class Twig_Node_AutoEscape
extends Twig_Node
{
- // Inherited members from Twig_Node
- protected $nodes;
- protected $attributes;
- protected $lineno;
- protected $tag;
- // methods
- public void __construct()
- public void compile()
- // Inherited methods from Twig_Node
- public void __construct()
- public void __toString()
- public void toXml()
- public void compile()
- public void getLine()
- public void getNodeTag()
- public Boolean hasAttribute()
- public mixed getAttribute()
- public void setAttribute()
- public void removeAttribute()
- public Boolean hasNode()
- public Twig_Node getNode()
- public void setNode()
- public void removeNode()
- public void count()
- public void getIterator()
Hierarchy
Extends
Members
protected
- $attributes
- $lineno
- $nodes
- $tag
Methods
public
- __construct()
- compile() — Compiles the node to PHP.
Inherited from Twig_Node
public
- __toString()
- compile()
- count()
- getAttribute() — Gets an attribute.
- getIterator()
- getLine()
- getNode() — Gets a node by name.
- getNodeTag()
- hasAttribute() — Returns true if the attribute is defined.
- hasNode() — Returns true if the node with the given identifier exists.
- removeAttribute() — Removes an attribute.
- removeNode() — Removes a node by name.
- setAttribute() — Sets an attribute.
- setNode() — Sets a node.
- toXml()