EXPERIMENTAL: the behaviour of this method may change in future releases.
This method allows to associate an "automatic" predefined formatter to the column, for common needs as formatting dates, numbers, ...
The currently supported predefined formatters are :
dateFromTimestamp: format a UNIX timestamp according to the date()-like format string passed as second argument
dateFromMysql : format a MySQL DATE, DATETIME, or TIMESTAMP MySQL according to the date() like format string passed as second argument
number: format a number, according to the same optional 2nd, 3rd and 4th arguments that the number_format() PHP function accepts.
printf: format using the printf expression passed as 2nd argument.
printfURL: url-encode and format using the printf expression passed as 2nd argument
Пример 57-1. Common formats
|
Пред. | Начало | След. |
constructor Structures_DataGrid_Column::Structures_DataGrid_Column() | Уровень выше | Structures_DataGrid_Column::formatter() |
HIVE: All information for read only. Please respect copyright! |