function execute($task) { if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . DS . 'toolbar.countries.php')) { require JPATH_COMPONENT_ADMINISTRATOR . DS . 'toolbar.countries.php'; } parent::execute($task); }
public function execute($task) { if (JDEBUG) { dumpMessage("JoopoaUserController Execute: " . $task); } parent::execute($task); }
public function execute($task) { if (JDEBUG) { dumpMessage("JoopoaController Execute: " . $task); } JToolBarHelper::preferences('com_joopoa', '300', '650'); parent::execute($task); }
public function execute($task) { parent::execute($task); //if error just return if ($this->getErrors()) { return; } //fire event to update editor $this->updateEditor($this->getTask(), $this->event_args); }
function execute($task) { if (strpos($task, '.') !== FALSE) { $task = explode('.', $task); $task = $task[1]; } if (class_exists($this->getClassName('toolbar')) && is_callable(array($this->getClassName('toolbar'), 'display'))) { call_user_func(array($this->getClassName('toolbar'), 'display'), $task); } return parent::execute($task); }
public function execute($task) { $this->_task = $task; // Set _task before beforeExecute if ($this->beforeExecute($task)) { parent::execute($task); } else { if (empty($this->_redirect)) { JofeApplication::enqueueMessage('Error happened in processing ' . $task . '.', 'error'); $this->setRedirect(JRoute::_('/')); } } }
/** * Overload the parent controller method to add a check for configuration variables * when a task has been provided * * @param String $task Task to perform * @return Boolean True if successful * @access public * @since 1.5 */ function execute($task) { global $mainframe; // Sanity check if ( $task && ( $task != 'lang' ) && ( $task != 'removedir' ) ) { /** * To get past this point, a cookietest must be carried in the user's state. * If the state is not set, then cookies are probably disabled. **/ $goodEnoughForMe = $mainframe->getUserState('application.cookietest'); if ( ! $goodEnoughForMe ) { $model =& $this->getModel(); $model->setError(JText::_('WARNCOOKIESNOTENABLED')); $view =& $this->getView(); $view->error(); return false; } } else { // Zilch the application registry - start from scratch $session =& JFactory::getSession(); $registry =& $session->get('registry'); $registry->makeNameSpace('application'); // Set the cookie test seed $mainframe->setUserState('application.cookietest', 1); } parent::execute($task); }
function execute($task) { $this->_task = $task; $pattern = '/^switchOff/'; if (preg_match($pattern, $task)) { $this->registerTask($task, 'multidobool'); } $pattern = '/^switchOn/'; if (preg_match($pattern, $task)) { $this->registerTask($task, 'multidobool'); } //let the task execute in controller //if task have failed, simply return and do not go to view if (parent::execute($task) === false) { return false; } if (JFactory::getApplication()->isAdmin() == true) { include_once XIPT_ADMIN_PATH_VIEWS . DS . 'cpanel' . DS . 'tmpl' . DS . 'default_footermenu.php'; } }