previousStructures_DataGrid::fill (Previous) (Next) Structures_DataGrid::getColumnByFieldnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Structures_DataGrid::generateColumns

Structures_DataGrid::generateColumns() – Generate columns from a fields list

Synopsis

require_once 'Structures/DataGrid.php';

void Structures_DataGrid::generateColumns ( array $fields = array() )

Description

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.

Parameter

array $fields

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

throws no exceptions thrown

Note

This function can not be called statically.

previousStructures_DataGrid::fill (Previous) (Next) Structures_DataGrid::getColumnByFieldnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.