Ejemplo n.º 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]);
 }
Ejemplo n.º 2
0
 /**
  * @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()]);
 }
Ejemplo n.º 3
0
 /**
  * @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]);
 }
Ejemplo n.º 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]);
 }