ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 ($name) | |
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) | |
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 () | |
getName () | |
Protected Attributes | |
$defaultStrategy | |
Definition at line 15 of file Escaper.php.
Twig_Extension_Escaper::__construct | ( | $defaultStrategy = 'html' | ) |
string | false | callable | $defaultStrategy | An escaping strategy |
Definition at line 24 of file Escaper.php.
References $defaultStrategy, and setDefaultStrategy().
Twig_Extension_Escaper::getDefaultStrategy | ( | $name | ) |
Gets the default strategy to use when not defined by the user.
string | $name | The template name |
Definition at line 83 of file Escaper.php.
References $defaultStrategy, and $name.
Twig_Extension_Escaper::getFilters | ( | ) |
Returns a list of filters to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 39 of file Escaper.php.
Twig_Extension_Escaper::getName | ( | ) |
Returns the name of the extension.
Implements Twig_ExtensionInterface.
Definition at line 94 of file Escaper.php.
Twig_Extension_Escaper::getNodeVisitors | ( | ) |
Returns the node visitor instances to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 34 of file Escaper.php.
Twig_Extension_Escaper::getTokenParsers | ( | ) |
Returns the token parser instances to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 29 of file Escaper.php.
Twig_Extension_Escaper::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 name as an argument and returns the strategy to use.
string | false | callable | $defaultStrategy | An escaping strategy |
Definition at line 54 of file Escaper.php.
References $defaultStrategy.
Referenced by __construct().
|
protected |
Definition at line 17 of file Escaper.php.
Referenced by __construct(), getDefaultStrategy(), and setDefaultStrategy().