Пример #1
0
 public function getNews($pageSize = 6)
 {
     $items = $this->RecentNews();
     // Apply pagination
     $list = new AjaxPaginatedList($items, $this->request);
     $list->setPageLength($pageSize);
     return $list;
 }
Пример #2
0
 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;
 }