\AccountingField
A field that uses accounting for formatting
- Author: Koala
Synopsis
class AccountingField
extends TextField
{
- // members
- protected static $_locale = NULL;
- protected static $_decimals = NULL;
- protected static $_thousands = NULL;
- private static integer $default_precision = 2;
- // methods
- public void extraClass()
- public void Field()
- public void Value()
- public int getRawPrecision()
- public void getPrecision()
- public void setPrecision()
- public void setValue()
- public static void initVariables()
- public static string format()
- public static void unformat()
Hierarchy
Extends
- TextField
Members
private
- $default_precision
protected
- $_decimals
- $_locale
- $_thousands
Methods
public
- Field()
- Value()
- extraClass()
- format() — Format a value as a number
- getPrecision()
- getRawPrecision() — Avoid recursive calls when called from Value() method
- initVariables()
- setPrecision()
- setValue()
- unformat() — Similar implementation than accounting.js unformat method