Esempio n. 1
0
 public function listCustompages($page, array $sort)
 {
     $limit = 10;
     $textblocks = new \DB\SQL\Mapper($this->db, $this->prefix . 'textblocks');
     $data = $textblocks->paginate($page - 1, $limit, NULL, array('order' => "{$sort['order']} {$sort['direction']}"));
     $this->paginate($data['total'], "/adminCP/home/custompages/order={$sort['link']},{$sort['direction']}", $limit);
     return $data['subset'];
 }