Miscellaneous | |
PEAR Manual | |
require_once 'Structures/DataGrid.php'; |
void
Structures_DataGrid::generateColumns
(
array
$fields = array()
)
This is a shortcut for adding simple columns easily, instead of creating them manually and calling addColumn() for each.
The generated columns are appended to the current column set.
Fields and labels. Array of the form: array(field => label, ...) The default is an empty array, which means: all fields fetched from the datasource
throws no exceptions thrown
This function can not be called statically.
Miscellaneous | |
PEAR Manual | |