PHP Class Twig_NodeVisitor_Escaper, php-framework-benchmarks

Author: Fabien Potencier ([email protected])
Inheritance: extends Twig_BaseNodeVisitor
ファイルを表示 Open project: pmjones/php-framework-benchmarks

Protected Properties

Property Type Description
$blocks
$safeAnalysis
$statusStack
$traverser

Public Methods

Method Description
__construct ( )
enterNode ( Twig_NodeInterface $node, Twig_Environment $env ) Called before child nodes are visited.
getPriority ( )
leaveNode ( Twig_NodeInterface $node, Twig_Environment $env ) Called after child nodes are visited.

Protected Methods

Method Description
escapePrintNode ( Twig_Node_Print $node, Twig_Environment $env, $type )
getEscaperFilter ( $type, Twig_NodeInterface $node )
isSafeFor ( $type, Twig_NodeInterface $expression, $env )
needEscaping ( Twig_Environment $env )
preEscapeFilterNode ( Twig_Node_Expression_Filter $filter, Twig_Environment $env )

Method Details

__construct() public method

public __construct ( )

enterNode() public method

Called before child nodes are visited.
public enterNode ( Twig_NodeInterface $node, Twig_Environment $env )
$node Twig_NodeInterface The node to visit
$env Twig_Environment The Twig environment instance

escapePrintNode() protected method

protected escapePrintNode ( Twig_Node_Print $node, Twig_Environment $env, $type )
$node Twig_Node_Print
$env Twig_Environment

getEscaperFilter() protected method

protected getEscaperFilter ( $type, Twig_NodeInterface $node )
$node Twig_NodeInterface

getPriority() public method

public getPriority ( )

isSafeFor() protected method

protected isSafeFor ( $type, Twig_NodeInterface $expression, $env )
$expression Twig_NodeInterface

leaveNode() public method

Called after child nodes are visited.
public leaveNode ( Twig_NodeInterface $node, Twig_Environment $env )
$node Twig_NodeInterface The node to visit
$env Twig_Environment The Twig environment instance

needEscaping() protected method

protected needEscaping ( Twig_Environment $env )
$env Twig_Environment

preEscapeFilterNode() protected method

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

Property Details

$blocks protected_oe property

protected $blocks

$safeAnalysis protected_oe property

protected $safeAnalysis

$statusStack protected_oe property

protected $statusStack

$traverser protected_oe property

protected $traverser