|  | rapila
    | 
Generic delegate for list widgets (ListWidgetModule) whose contents are determined by database entries of a specific model. More...
 
  
 | Public Member Functions | |
| __construct ($oCriteriaDelegate, $sModelName, $sDefaultOrderColumn=null, $sDefaultSortOrder='asc') | |
| setModelName ($sModelName) | |
| getModelName () | |
| getListSettings () | |
| getDelegate () | |
| getColumnIdentifiers () | |
| __call ($sMethodName, $aArguments) | |
| getMetadataForColumn ($sColumnIdentifier) | |
| getCriteria ($bSortIsIrrelevant=false) | |
| getListContents ($iRowStart=0, $iRowCount=null) | |
| getCustomListElements () | |
| setOrderColumnSort ($sOrderColumn, $sSortOrder) | |
| getOrderColumnSort () | |
| allowSort ($sColumnIdentifier) | |
| doSort ($sColumnIdentifier, $aRowData, $aRelatedRowData, $sPosition) | |
| setSearch ($sSearch) | |
| getSearch () | |
| deleteRow ($aRowData) | |
| rowFromData ($aRowData) | |
| numberOfRows () | |
Generic delegate for list widgets (ListWidgetModule) whose contents are determined by database entries of a specific model.
Usage:
 CriteriaListWidgetDelegate still needs its own delegate. The required method for this is getColumnIdentifiers. Optional methods are as follows:
getCriteria to customize the database querygetDatabaseColumnForColumn for columns whose identifier or field_name does not correspond to a database field directly (you only need this if you wish to sort or filter by a column)getFilterTypeForColumn return one of the given FILTER_TYPE_* constants to allow filtering by a specific column (the column does not need to be displayed). Set the filters using ListWidgetModule::setOption() (also from JavaScript). | CriteriaListWidgetDelegate::getSearch | ( | ) | 
Searching only works if the ModelNamePeer class has a Method named addSearchToCriteria($sSearchString, $oCriteria) which should set all the necessary search query params on the criteria. 
 1.8.9.1
 1.8.9.1