コード例 #1
0
 /**
  * @access core.read
  */
 public function indexAction($request)
 {
     $paginator = new Paginator($this->repo('Log'), $request->get('page'), $this->createUrl($this->request()->query->all()));
     $modules = $this->db()->builder()->select('module')->groupBy('module')->from('#__history_log')->all();
     $authors = $this->db()->builder()->select('authorName, authorId')->groupBy('authorName')->from('#__history_log')->all();
     return $this->render('', ['elements' => $paginator->getElements(), 'pagination' => $paginator, 'modules' => $modules, 'authors' => $authors]);
 }
コード例 #2
0
ファイル: AuthLog.php プロジェクト: veronecrm/mod.verone.user
 /**
  * @access core.read
  */
 public function indexAction($request)
 {
     $repo = $this->repo('AuthLog');
     $paginator = new Paginator($repo, $request->get('page'), $this->createUrl($this->request()->query->all()));
     $elements = $paginator->getElements();
     $repo->fillUsernames($elements);
     return $this->render('', ['elements' => $elements, 'pagination' => $paginator, 'users' => $this->repo('user')->findAll()]);
 }
コード例 #3
0
ファイル: User.php プロジェクト: veronecrm/mod.verone.user
 /**
  * @access core.module
  */
 public function indexAction($request)
 {
     $paginator = new Paginator($this->repo(), $request->get('page'), $this->createUrl($this->request()->query->all()));
     return $this->render('', ['elements' => $paginator->getElements(), 'pagination' => $paginator]);
 }
コード例 #4
0
 /**
  * @access core.module
  */
 public function indexAction($request)
 {
     $repo = $this->repo();
     $paginator = new Paginator($repo, $request->get('page'), $this->createUrl('Invoice', 'Invoice', 'index'));
     return $this->render('', ['elements' => $paginator->getElements(), 'pagination' => $paginator, 'repo' => $repo]);
 }