/** * Determines task being called and attempts to execute it * * @return void */ public function execute() { // Set the default task $this->registerTask('__default', 'media'); $this->registerTask('thumb', 'media'); parent::execute(); }
/** * Determines task being called and attempts to execute it * * @return void */ public function execute() { // Set the default task $this->registerTask('__default', 'intro'); // Register tasks $this->registerTask('suspend', 'changestate'); $this->registerTask('reinstate', 'changestate'); $this->registerTask('fixownership', 'changestate'); $this->registerTask('delete', 'changestate'); parent::execute(); }
/** * Determines task being called and attempts to execute it * * @return void */ public function execute() { $this->registerTask('start', 'display'); // Incoming $defaultSection = $this->_task == 'edit' ? 'info' : ''; $this->section = Request::getVar('active', $defaultSection); $this->group = NULL; // Login required if (User::isGuest()) { $this->_msg = $this->_task == 'edit' || !$this->_task ? Lang::txt('COM_PROJECTS_LOGIN_PRIVATE_PROJECT_AREA') : Lang::txt('COM_PROJECTS_LOGIN_SETUP'); $this->_login(); return; } parent::execute(); }
/** * Determines task being called and attempts to execute it * * @return void */ public function execute() { $this->registerTask('start', 'display'); // Incoming $defaultSection = $this->_task == 'edit' ? 'info' : ''; $this->section = Request::getVar('active', $defaultSection); $this->group = NULL; // Login required if (User::isGuest()) { $this->_msg = $this->_task == 'edit' || !$this->_task ? Lang::txt('COM_PROJECTS_LOGIN_PRIVATE_PROJECT_AREA') : Lang::txt('COM_PROJECTS_LOGIN_SETUP'); $this->_login(); return; } if (!User::authorise('core.create', $this->_option) && !User::authorise('core.edit', $this->_option) && !User::authorise('core.manage', $this->_option)) { App::redirect(Route::url('index.php?option=' . $this->_option), Lang::txt('ALERTNOTAUTH'), 'warning'); } parent::execute(); }