|
eZ Publish
[trunk]
|
Locale aware conversions and output using operator "l10n". More...
Public Member Functions | |
| currentDateTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| dateTimeTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| eZTemplateLocaleOperator () | |
| getTimeTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| l10nTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| makeDateTimeTransformation ($operatorName, &$node, $tpl, &$resourceData, $element, $lastElement, $elementList, $elementTree, &$parameters) | |
| modify ($tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters, $placement) | |
| namedParameterList () | |
| namedParameterPerOperator () | |
| operatorList () | |
| operatorTemplateHints () | |
Public Attributes | |
| $CurrentDateName | |
| $DateTimeName | |
| $Locale | |
| A reference to the locale object. | |
| $LocaleName | |
| $Operators | |
| The operator array. | |
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.
// Example template code
{$curdate|l10n(date)}
{$cash|l10n(currency)}
Definition at line 29 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::currentDateTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 266 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::dateTimeTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 218 of file eztemplatelocaleoperator.php.
Initializes the object with the default locale.
Definition at line 35 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::getTimeTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 301 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::l10nTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Transforms
Definition at line 127 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::makeDateTimeTransformation | ( | $ | operatorName, |
| &$ | node, | ||
| $ | tpl, | ||
| &$ | resourceData, | ||
| $ | element, | ||
| $ | lastElement, | ||
| $ | elementList, | ||
| $ | elementTree, | ||
| &$ | parameters | ||
| ) |
Definition at line 274 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::modify | ( | $ | tpl, |
| $ | operatorName, | ||
| $ | operatorParameters, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace, | ||
| &$ | operatorValue, | ||
| $ | namedParameters, | ||
| $ | placement | ||
| ) |
Converts the variable according to the locale type. Allowed types are:
Definition at line 350 of file eztemplatelocaleoperator.php.
See eZTemplateOperator::namedParameterList
Definition at line 103 of file eztemplatelocaleoperator.php.
Definition at line 95 of file eztemplatelocaleoperator.php.
Returns array with l10n.
Definition at line 50 of file eztemplatelocaleoperator.php.
Returns a list with hints for the template compiler.
Definition at line 58 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::$CurrentDateName |
Definition at line 515 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::$DateTimeName |
Definition at line 514 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::$Locale |
A reference to the locale object.
Definition at line 511 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::$LocaleName |
Definition at line 513 of file eztemplatelocaleoperator.php.
| eZTemplateLocaleOperator::$Operators |
The operator array.
Definition at line 509 of file eztemplatelocaleoperator.php.