PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Protected Member Functions | Protected Attributes
Twig_NodeVisitor_Escaper Class Reference

Twig_NodeVisitor_Escaper implements output escaping. More...

Inheritance diagram for Twig_NodeVisitor_Escaper:
Twig_NodeVisitorInterface

Public Member Functions

 __construct ()
 
 enterNode (Twig_NodeInterface $node, Twig_Environment $env)
 Called before child nodes are visited. More...
 
 leaveNode (Twig_NodeInterface $node, Twig_Environment $env)
 Called after child nodes are visited. More...
 
 getPriority ()
 {Returns the priority for this visitor.Priority should be between -10 and 10 (0 is the default).
Returns
integer The priority level
} More...
 

Protected Member Functions

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

Protected Attributes

 $statusStack = array()
 
 $blocks = array()
 
 $safeAnalysis
 
 $traverser
 
 $defaultStrategy = false
 
 $safeVars = array()
 

Detailed Description

Twig_NodeVisitor_Escaper implements output escaping.

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

Definition at line 17 of file Escaper.php.

Constructor & Destructor Documentation

__construct ( )

Definition at line 26 of file Escaper.php.

Member Function Documentation

enterNode ( Twig_NodeInterface  $node,
Twig_Environment  $env 
)

Called before child nodes are visited.

Parameters
Twig_NodeInterface$nodeThe node to visit
Twig_Environment$envThe Twig environment instance
Returns
Twig_NodeInterface The modified node

Implements Twig_NodeVisitorInterface.

Definition at line 39 of file Escaper.php.

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

Definition at line 85 of file Escaper.php.

getEscaperFilter (   $type,
Twig_NodeInterface  $node 
)
protected

Definition at line 151 of file Escaper.php.

getPriority ( )

{Returns the priority for this visitor.Priority should be between -10 and 10 (0 is the default).

Returns
integer The priority level
}

Implements Twig_NodeVisitorInterface.

Definition at line 163 of file Escaper.php.

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

Definition at line 124 of file Escaper.php.

leaveNode ( Twig_NodeInterface  $node,
Twig_Environment  $env 
)

Called after child nodes are visited.

Parameters
Twig_NodeInterface$nodeThe node to visit
Twig_Environment$envThe Twig environment instance
Returns
Twig_NodeInterface The modified node

Implements Twig_NodeVisitorInterface.

Definition at line 65 of file Escaper.php.

needEscaping ( Twig_Environment  $env)
protected

Definition at line 142 of file Escaper.php.

preEscapeFilterNode ( Twig_Node_Expression_Filter  $filter,
Twig_Environment  $env 
)
protected

Definition at line 105 of file Escaper.php.

Field Documentation

$blocks = array()
protected

Definition at line 20 of file Escaper.php.

$defaultStrategy = false
protected

Definition at line 23 of file Escaper.php.

$safeAnalysis
protected

Definition at line 21 of file Escaper.php.

$safeVars = array()
protected

Definition at line 24 of file Escaper.php.

$statusStack = array()
protected

Definition at line 19 of file Escaper.php.

$traverser
protected

Definition at line 22 of file Escaper.php.


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

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:45 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.