Structures_DataGrid::setDefaultSort()

Structures_DataGrid::setDefaultSort()  -- Set default sorting specification

Synopsis

require_once 'Structures/DataGrid.php';

mixed Structures_DataGrid::setDefaultSort (array $sortSpec)

Описание

If there is no sorting query in the HTTP request, and if the sortRecordSet() method is not called, then the specification passed to setDefaultSort() will be used.

This is especially useful if you want the data to already be sorted when a user first see the datagrid.

Параметр

array $sortSpec

Sorting specification Structure: array(fieldName => direction, ...)

Возвращаемое значение

returns Either true or a PEAR_Error object

Throws

throws no exceptions thrown

Заметка

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


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