|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
@final More...
Inheritance diagram for Twig_Extension_Core:
Collaboration diagram for Twig_Extension_Core:Public Member Functions | |
| setEscaper ($strategy, $callable) | |
| Defines a new escaper to be used via the escape filter. More... | |
| getEscapers () | |
| Gets all defined escapers. More... | |
| setDateFormat ($format=null, $dateIntervalFormat=null) | |
| Sets the default format to be used by the date filter. More... | |
| getDateFormat () | |
| Gets the default format to be used by the date filter. More... | |
| setTimezone ($timezone) | |
| Sets the default timezone to be used by the date filter. More... | |
| getTimezone () | |
| Gets the default timezone to be used by the date filter. More... | |
| setNumberFormat ($decimal, $decimalPoint, $thousandSep) | |
| Sets the default format to be used by the number_format filter. More... | |
| getNumberFormat () | |
| Get the default format used by the number_format filter. More... | |
| getTokenParsers () | |
| Returns the token parser instances to add to the existing list. More... | |
| getFilters () | |
| Returns a list of filters to add to the existing list. More... | |
| getFunctions () | |
| Returns a list of functions to add to the existing list. More... | |
| getTests () | |
| Returns a list of tests to add to the existing list. More... | |
| getOperators () | |
| Returns a list of operators to add to the existing list. More... | |
| getName () | |
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 () | |
| 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... | |
| getName () | |
| Returns the name of the extension. More... | |
Protected Attributes | |
| $dateFormats = array('F j, Y H:i', '%d days') | |
| $numberFormat = array(0, '.', ',') | |
| $timezone = null | |
| $escapers = array() | |
| Twig_Extension_Core::getDateFormat | ( | ) |
Gets the default format to be used by the date filter.
Definition at line 69 of file Core.php.
References $dateFormats.
| Twig_Extension_Core::getEscapers | ( | ) |
| Twig_Extension_Core::getFilters | ( | ) |
Returns a list of filters to add to the existing list.
Reimplemented from Twig_Extension.
Definition at line 142 of file Core.php.
| Twig_Extension_Core::getFunctions | ( | ) |
Returns a list of functions to add to the existing list.
Reimplemented from Twig_Extension.
Definition at line 199 of file Core.php.
| Twig_Extension_Core::getName | ( | ) |
Reimplemented from Twig_Extension.
Definition at line 273 of file Core.php.
| Twig_Extension_Core::getNumberFormat | ( | ) |
Get the default format used by the number_format filter.
Definition at line 115 of file Core.php.
References $numberFormat.
| Twig_Extension_Core::getOperators | ( | ) |
Returns a list of operators to add to the existing list.
Reimplemented from Twig_Extension.
Definition at line 232 of file Core.php.
References Twig_ExpressionParser\OPERATOR_LEFT, and Twig_ExpressionParser\OPERATOR_RIGHT.
| Twig_Extension_Core::getTests | ( | ) |
Returns a list of tests to add to the existing list.
Reimplemented from Twig_Extension.
Definition at line 214 of file Core.php.
| Twig_Extension_Core::getTimezone | ( | ) |
| Twig_Extension_Core::getTokenParsers | ( | ) |
Returns the token parser instances to add to the existing list.
Reimplemented from Twig_Extension.
Definition at line 120 of file Core.php.
| Twig_Extension_Core::setDateFormat | ( | $format = null, |
|
$dateIntervalFormat = null |
|||
| ) |
Sets the default format to be used by the date filter.
| string | $format | The default date format string |
| string | $dateIntervalFormat | The default date interval format string |
Definition at line 53 of file Core.php.
References $format.
| Twig_Extension_Core::setEscaper | ( | $strategy, | |
| $callable | |||
| ) |
| Twig_Extension_Core::setNumberFormat | ( | $decimal, | |
| $decimalPoint, | |||
| $thousandSep | |||
| ) |
Sets the default format to be used by the number_format filter.
| int | $decimal | the number of decimal places to use |
| string | $decimalPoint | the character(s) to use for the decimal point |
| string | $thousandSep | the character(s) to use for the thousands separator |
Definition at line 105 of file Core.php.
| Twig_Extension_Core::setTimezone | ( | $timezone | ) |
|
protected |
Definition at line 21 of file Core.php.
Referenced by getDateFormat().
|
protected |
Definition at line 24 of file Core.php.
Referenced by getEscapers().
|
protected |
Definition at line 22 of file Core.php.
Referenced by getNumberFormat().
|
protected |
Definition at line 23 of file Core.php.
Referenced by getTimezone(), and setTimezone().