public function orderBy()
 {
     parent::orderBy();
     // please note this will just add the order-by columns to select query, and not display in column-headers.
     // This is a solution to not throw fatal errors when there is a column in order-by, not present in select/display columns.
     foreach ($this->_orderByFields as $orderBy) {
         if (!array_key_exists($orderBy['name'], $this->_params['fields']) && empty($orderBy['section'])) {
             $this->_select .= ", {$orderBy['dbAlias']} as {$orderBy['tplField']}";
         }
     }
 }
Пример #2
0
 function orderBy()
 {
     parent::orderBy();
 }