BrowserColumnBrowserColumns are the basic building blocks. You can specify just the field name, and the column header or you can get fancy and specify an alignment, format string, SQL formula and cell CSS class.
Located in /classBrowser.php (line 32)
BrowserColumn
BrowserColumn
(string $field, [string $header = ""], [string $align = ""], [string $format = ""], [string $sql = ""], [string $class = ""], [string $datatype = ""], [string $hook = null])
void
RenderHeader
(string $order_field, string $order_direction, [int $browser_array_key = 0], [string $forced_order = false])
Constructor BrowserColumn (line 69)
BrowserColumn constructor. Only the first parameter is mandatory.
The name of a global function which will preprocess the column value
The hook function should be defined as follows: function hookfunction( $column_value, $column_name, $database_row ) { ... return $value; }
GetTarget (line 86)
GetTarget
Retrieves a 'field' or '...SQL... AS field' definition for the target list of the SQL.
RenderHeader (line 104)
RenderHeader
Renders the column header cell for this column. This will be rendered as a <th>...</th> with class and alignment applied to it. Browser column headers are clickable, and the ordering will also display an 'up' or 'down' triangle with the column header that the SQL is sorted on at the moment.
RenderValue (line 133)
SetTranslatable (line 129)
Documentation generated on Fri, 13 Jan 2012 23:40:14 +1300 by phpDocumentor 1.4.3