/** * Initialize the controller. * * @return $this Method allows chaining * * @since 1.0 */ public function initialize() { parent::initialize(); /* @type \JTracker\Application $application */ $application = $this->getContainer()->get('app'); $state = $this->model->getState(); $state->set('filter.search-user', $application->getUserStateFromRequest('filter.search-user', 'search-user', '', 'string')); return $this; }
/** * Initialize the controller. * * @return $this Method supports chaining * * @since 1.0 */ public function initialize() { parent::initialize(); /* @type \JTracker\Application $application */ $application = $this->getContainer()->get('app'); $application->getUser()->authorize('manage'); $this->model->setProject($this->getContainer()->get('app')->getProject(true)); $this->view->setProject($this->getContainer()->get('app')->getProject()); return $this; }
/** * Initialize the controller. * * @return $this Method allows chaining * * @since 1.0 */ public function initialize() { parent::initialize(); // @todo Setup filters here (if needed) return $this; }