Example #1
0
 public function getAll($startIndex = 0, $search = null)
 {
     $condition = new Condition();
     if (!empty($search)) {
         $condition->like('name', '%' . $search . '%');
     }
     return new ResultSet($this->configTable->getCount($condition), $startIndex, 16, $this->configTable->getAll($startIndex, 16, 'name', Sql::SORT_ASC, $condition));
 }