/** * @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]); }
/** * @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()]); }
/** * @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]); }
/** * @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]); }