示例#1
0
文件: Users.php 项目: joomlla/jissues
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * Initialize the controller.
  *
  * @return  $this  Method allows chaining
  *
  * @since   1.0
  */
 public function initialize()
 {
     parent::initialize();
     // @todo Setup filters here (if needed)
     return $this;
 }