Пример #1
0
 protected function parse_orderby($orderby)
 {
     $_orderby = parent::parse_orderby($orderby);
     if ('rand' == $orderby) {
         $_orderby = 'RAND()';
     }
     return $_orderby;
 }