PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Protected Attributes
Twig_Extension_Escaper Class Reference
Inheritance diagram for Twig_Extension_Escaper:
Twig_Extension Twig_ExtensionInterface

Public Member Functions

 __construct ($defaultStrategy= 'html')
 
 getTokenParsers ()
 Returns the token parser instances to add to the existing list. More...
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 getFilters ()
 Returns a list of filters to add to the existing list. More...
 
 setDefaultStrategy ($defaultStrategy)
 Sets the default strategy to use when not defined by the user. More...
 
 getDefaultStrategy ($filename)
 Gets the default strategy to use when not defined by the user. More...
 
 getName ()
 Returns the name of the extension. More...
 
- Public Member Functions inherited from Twig_Extension
 initRuntime (Twig_Environment $environment)
 Initializes the runtime environment. More...
 
 getTokenParsers ()
 Returns the token parser instances to add to the existing list. More...
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 getFilters ()
 Returns a list of filters to add to the existing list. More...
 
 getTests ()
 Returns a list of tests to add to the existing list. More...
 
 getFunctions ()
 Returns a list of functions to add to the existing list. More...
 
 getOperators ()
 Returns a list of operators to add to the existing list. More...
 
 getGlobals ()
 Returns a list of global variables to add to the existing list. More...
 

Protected Attributes

 $defaultStrategy
 

Detailed Description

Definition at line 11 of file Escaper.php.

Constructor & Destructor Documentation

__construct (   $defaultStrategy = 'html')

Definition at line 15 of file Escaper.php.

Member Function Documentation

getDefaultStrategy (   $filename)

Gets the default strategy to use when not defined by the user.

Parameters
string$filenameThe template "filename"
Returns
string The default strategy to use for the template

Definition at line 77 of file Escaper.php.

getFilters ( )

Returns a list of filters to add to the existing list.

Returns
array An array of filters

Implements Twig_ExtensionInterface.

Definition at line 45 of file Escaper.php.

getName ( )

Returns the name of the extension.

Returns
string The extension name

Implements Twig_ExtensionInterface.

Definition at line 93 of file Escaper.php.

getNodeVisitors ( )

Returns the node visitor instances to add to the existing list.

Returns
array An array of Twig_NodeVisitorInterface instances

Implements Twig_ExtensionInterface.

Definition at line 35 of file Escaper.php.

getTokenParsers ( )

Returns the token parser instances to add to the existing list.

Returns
array An array of Twig_TokenParserInterface or Twig_TokenParserBrokerInterface instances

Implements Twig_ExtensionInterface.

Definition at line 25 of file Escaper.php.

setDefaultStrategy (   $defaultStrategy)

Sets the default strategy to use when not defined by the user.

The strategy can be a valid PHP callback that takes the template "filename" as an argument and returns the strategy to use.

Parameters
mixed$defaultStrategyAn escaping strategy

Definition at line 60 of file Escaper.php.

Field Documentation

$defaultStrategy
protected

Definition at line 13 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:44 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.