コード例 #1
0
ファイル: Dashboard.php プロジェクト: zource/zource
 public function manageAction()
 {
     /** @var Paginator $dashboards */
     $dashboards = $this->dashboardTaskService->getPaginator();
     $dashboards->setCurrentPageNumber($this->params()->fromQuery('page', 1));
     $dashboards->setItemCountPerPage(25);
     return new ViewModel(['dashboards' => $dashboards]);
 }
コード例 #2
0
ファイル: DashboardResource.php プロジェクト: zource/zource
 public function fetchAll($params = array())
 {
     $adapter = $this->dashboardTaskService->getPaginator()->getAdapter();
     return new DashboardCollection($adapter);
 }