public function getNews($pageSize = 6) { $items = $this->RecentNews(); // Apply pagination $list = new AjaxPaginatedList($items, $this->request); $list->setPageLength($pageSize); return $list; }
public function getNews($pageSize = 5) { $items = $this->NewsItems()->sort(array('Sort' => 'ASC', 'Created' => 'ASC')); // Apply pagination $list = new AjaxPaginatedList($items, $this->request); $list->setPageLength($pageSize); return $list; }
public function FilteredGames($pageSize = 30) { $items = $this->getCurrentGames(); $items->sort('Title', 'ASC'); // Apply pagination $list = new AjaxPaginatedList($items, $this->request); $list->setPageLength($pageSize); return $list; }