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 31)
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 68)
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 85)
GetTarget
Retrieves a 'field' or '...SQL... AS field' definition for the target list of the SQL.
RenderHeader (line 103)
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 132)
SetTranslatable (line 128)
Documentation generated on Tue, 06 Oct 2009 09:31:44 -0700 by phpDocumentor 1.3.2