Пример #1
0
 protected function execQuery()
 {
     $p = $this->getDefinitionParams();
     $this->query->limit($p['limit'], $p['offset']);
     if ($p['sort']) {
         $desc = $p['desc'] ? 'DESC' : 'ASC';
         $this->query->orderBy($p['sort'], $desc);
     }
 }
Пример #2
0
 /**
  * @expectedException \ezcDbMissingParameterException
  */
 public function testResetException()
 {
     $this->q->reset('no name');
 }