PHP Class Twig_NodeVisitor_Escaper, php-framework-benchmarks

Author: Fabien Potencier ([email protected])
Inheritance: extends Twig_BaseNodeVisitor
Afficher le fichier Open project: pmjones/php-framework-benchmarks

Protected Properties

Свойство Type Description
$blocks
$safeAnalysis
$statusStack
$traverser

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

public __construct ( )

enterNode() public méthode

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 méthode

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

getEscaperFilter() protected méthode

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

getPriority() public méthode

public getPriority ( )

isSafeFor() protected méthode

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

leaveNode() public méthode

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 méthode

protected needEscaping ( Twig_Environment $env )
$env Twig_Environment

preEscapeFilterNode() protected méthode

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