Source for file TableSorter.php
Documentation is available at TableSorter.php
* The miTableSorter class
* @copyright Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.
* @copyright Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.
$fields =
$this->_table->getRecordset()->getAllFields();
foreach ($fields as $index =>
$field) {
$newSortDir =
($sortDir ==
'ASC') ?
'DESC' :
'ASC';
$values[strtoupper($field) .
self::TMPL_VAR_SORT_DIR_SUFFIX] =
$newSortDir;
* Returns associative array with params that save the feature state
self::PARAM_SORTBY =>
$this->getStateValue(self::PARAM_SORTBY, ''),
self::PARAM_SORTDIR =>
$this->getStateValue(self::PARAM_SORTDIR, '')
Documentation generated on Thu, 08 May 2008 16:57:47 +0300 by phpDocumentor 1.4.1