eZTemplateUnitOperator Class Reference
[Template operators]
Handles unit conversion and display using the operator "si".
More...
List of all members.
Detailed Description
Handles unit conversion and display using the operator "si".
The operator reads two parameters. The first tells the kind of unit type we're dealing with, for instance: byte, length. The second determines the behaviour of prefixes and is optional.
The available units are defined in the settings/unit.ini file. The bases are read from the Base group.
The unit operator supports both traditional 10^n based prefixes as well as binary prefixes(2^n n=10,20..), both old names and new names. See International Systems of Units
{1025|si(byte)}
{1025|si(byte,binary)}
{1025|si(byte,decimal)}
{1025|si(byte,none)}
{1025|si(byte,auto)}
{1025|si(byte,mebi)}
Definition at line eztemplateunitoperator.php.
Constructor & Destructor Documentation
eZTemplateUnitOperator::eZTemplateUnitOperator |
( |
$ |
name = "si" |
) |
|
|
Member Function Documentation
eZTemplateUnitOperator::modify |
( |
&$ |
tpl, |
|
|
&$ |
operatorName, |
|
|
&$ |
operatorParameters, |
|
|
&$ |
rootNamespace, |
|
|
&$ |
currentNamespace, |
|
|
&$ |
operatorValue, |
|
|
&$ |
namedParameters |
|
) |
|
|
eZTemplateUnitOperator::namedParameterList |
( |
|
) |
|
|
& eZTemplateUnitOperator::operatorList |
( |
|
) |
|
|
The documentation for this class was generated from the following file:
|