/** * Returns sorting fields array * * @return array */ public function getListSorting() { $aSorting = parent::getListSorting(); if (isset($aSorting["oxnews"][$this->_sDefSortField])) { $this->_blDesc = true; } return $aSorting; }
/** * Returns sorting fields array. We extend this method for getting a second order by, which will give us not the * undefined order behind the "active" countries. * * @return array */ public function getListSorting() { $aListSorting = parent::getListSorting(); if (array_keys($aListSorting['oxcountry']) === array('oxactive')) { $aListSorting['oxcountry'][$this->_getSecondSortFieldName()] = 'asc'; } return $aListSorting; }
/** * Returns sorting fields array * * @return array */ public function getListSorting() { if ($this->_aCurrSorting === null && !oxConfig::getParameter('sort') && ($oBaseObject = $this->getItemListBaseObject())) { $sCatView = $oBaseObject->getCoreTableName(); $this->_aCurrSorting[$sCatView]["oxrootid"] = "desc"; $this->_aCurrSorting[$sCatView]["oxleft"] = "asc"; return $this->_aCurrSorting; } else { return parent::getListSorting(); } }
/** * Returns sorting fields array * * @return array */ public function getListSorting() { $sorting = parent::getListSorting(); if (isset($sorting["oxorder"]["oxbilllname"])) { $this->_blDesc = false; } return $sorting; }