Formatter base class
Formatters provide a interface for value formatting/rewriting for xdo views. Formatters can be used for either DataSet and DataObject views (this can be configured - seeXDOViewDefinition).
Please note that Formatters cannot be used for read-write fields, as they have no possiblity to reverse their formatting. For custom input formats, you will need to create widgets.
Located in /phpsatk-lib/global/org.eenterphace.sat.formatter/formatter.php (line 41)
| Class | Description |
|---|---|
| FormatterRoleID | Formatter transforming a RoleID into a name |
| FormatterUserID | Formatter transforming a User ID into a name |
| FormatterDateTime | Timestamp formatter for date/time values |
| FormatterNumber | Formatter for numbers |
| FormatterTimespan | Timestamp formatter for timespans |
| FormatterShorten | Shortening formatter |
| FormatterEnum | Formatter for enumerations |
Initialize the formatter
The formatter will be passed a dom node which might contain configuration elements for it. This configuration should be parsed in the constructor and made available as class property to the formatting function.
The actual formatting function
Implement your formatting here.
Documentation generated on Mon, 21 May 2007 10:35:03 +0200 by phpDocumentor 1.3.0RC5