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()])

Описание

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.

Параметр

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

Заметка

Эта функция не должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ