Structures_DataGrid::
setDataSourceOptions
(Previous)
(Next) Structures_DataGrid::setRenderer

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Structures_DataGrid::setDefaultSort()

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

Beschreibung

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.

This method needs to be called before bind().

Parameter

array $sortSpec

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

Rückgabewert

returns Either true or a PEAR_Error object

Fehler-Meldungen

throws no exceptions thrown

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Structures_DataGrid::
setDataSourceOptions
(Previous)
(Next) Structures_DataGrid::setRenderer

Download Documentation Last updated: Sun, 28 Sep 2008
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.