ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 () | |
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 | |
$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.
Implements Twig_ExtensionInterface.
Definition at line 142 of file Core.php.
References array.
Twig_Extension_Core::getFunctions | ( | ) |
Returns a list of functions to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 199 of file Core.php.
References array.
Twig_Extension_Core::getName | ( | ) |
Returns the name of the extension.
Implements Twig_ExtensionInterface.
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.
Implements Twig_ExtensionInterface.
Definition at line 232 of file Core.php.
References array, Twig_ExpressionParser\OPERATOR_LEFT, and Twig_ExpressionParser\OPERATOR_RIGHT.
Twig_Extension_Core::getTests | ( | ) |
Returns a list of tests to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 214 of file Core.php.
References array.
Twig_Extension_Core::getTimezone | ( | ) |
Twig_Extension_Core::getTokenParsers | ( | ) |
Returns the token parser instances to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 120 of file Core.php.
References array.
Twig_Extension_Core::setDateFormat | ( | $format = null , |
|
$dateIntervalFormat = null |
|||
) |
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.
References array.
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(), setTimezone(), twig_date_converter(), and twig_date_format_filter().