eZTemplateLocaleOperator Class Reference
[Template operators]
Locale aware conversions and output using operator "l10n".
More...
List of all members.
Detailed Description
Locale aware conversions and output using operator "l10n".
This class takes care of converting variables and displaying them according to their locale settings. The class has one operator called l10n(short for localization) which takes one parameter which is localization type. Supported types are time, shorttime, date, shortdate, currency and number.
{$curdate|l10n(date)}
{$cash|l10n(currency)}
Definition at line eztemplatelocaleoperator.php.
Constructor & Destructor Documentation
eZTemplateLocaleOperator::eZTemplateLocaleOperator |
( |
$ |
localeName = 'l10n', |
|
|
$ |
dateTimeName = 'datetime', |
|
|
$ |
currentDateName = 'currentdate' |
|
) |
|
|
Member Function Documentation
eZTemplateLocaleOperator::modify |
( |
&$ |
tpl, |
|
|
&$ |
operatorName, |
|
|
&$ |
operatorParameters, |
|
|
&$ |
rootNamespace, |
|
|
&$ |
currentNamespace, |
|
|
&$ |
operatorValue, |
|
|
&$ |
namedParameters |
|
) |
|
|
eZTemplateLocaleOperator::namedParameterList |
( |
|
) |
|
|
eZTemplateLocaleOperator::namedParameterPerOperator |
( |
|
) |
|
|
|
- Returns:
-
true to tell the template engine that the parameter list exists per operator type.
Definition at line eztemplatelocaleoperator.php. |
& eZTemplateLocaleOperator::operatorList |
( |
|
) |
|
|
Member Data Documentation
eZTemplateLocaleOperator::Operators [private]
|
|
The documentation for this class was generated from the following file:
|