Class Twig_NodeVisitor_Escaper

InheritanceTwig_NodeVisitor_Escaper » Twig_BaseNodeVisitor
ImplementsTwig_NodeVisitorInterface

Twig_NodeVisitor_Escaper implements output escaping.

Property Details

$blocks protected property
protected $blocks = []
$defaultStrategy protected property
protected $defaultStrategy false
$safeAnalysis protected property
protected $safeAnalysis null
$safeVars protected property
protected $safeVars = []
$statusStack protected property
protected $statusStack = []
$traverser protected property
protected $traverser null

Method Details

__construct() public method

public void __construct ( )
doEnterNode() protected method

{@inheritdoc}

protected void doEnterNode ( Twig_Node $node, Twig_Environment $env )
$node
$env
doLeaveNode() protected method

{@inheritdoc}

protected void doLeaveNode ( Twig_Node $node, Twig_Environment $env )
$node
$env
escapePrintNode() protected method

protected void escapePrintNode ( Twig_Node_Print $node, Twig_Environment $env, $type )
$node
$env
$type
getEscaperFilter() protected method

protected void getEscaperFilter ( $type, Twig_NodeInterface $node )
$type
$node
getPriority() public method

{@inheritdoc}

public void getPriority ( )
isSafeFor() protected method

protected void isSafeFor ( $type, Twig_NodeInterface $expression, $env )
$type
$expression
$env
needEscaping() protected method

protected void needEscaping ( Twig_Environment $env )
$env
preEscapeFilterNode() protected method

protected void preEscapeFilterNode ( Twig_Node_Expression_Filter $filter, Twig_Environment $env )
$filter
$env