當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JController::execute方法代碼示例

本文整理匯總了PHP中JController::execute方法的典型用法代碼示例。如果您正苦於以下問題:PHP JController::execute方法的具體用法?PHP JController::execute怎麽用?PHP JController::execute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JController的用法示例。


在下文中一共展示了JController::execute方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: execute

 function execute($task)
 {
     if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . DS . 'toolbar.countries.php')) {
         require JPATH_COMPONENT_ADMINISTRATOR . DS . 'toolbar.countries.php';
     }
     parent::execute($task);
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:7,代碼來源:countries.php

示例2: execute

 public function execute($task)
 {
     if (JDEBUG) {
         dumpMessage("JoopoaUserController Execute: " . $task);
     }
     parent::execute($task);
 }
開發者ID:LMSeXT,項目名稱:com_joopoauser,代碼行數:7,代碼來源:controller.php

示例3: execute

 public function execute($task)
 {
     if (JDEBUG) {
         dumpMessage("JoopoaController Execute: " . $task);
     }
     JToolBarHelper::preferences('com_joopoa', '300', '650');
     parent::execute($task);
 }
開發者ID:LMSeXT,項目名稱:com_joopoa,代碼行數:8,代碼來源:controller.php

示例4: execute

 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);
 }
開發者ID:shamusdougan,項目名稱:MillparkNoticeBoards,代碼行數:10,代碼來源:controller.php

示例5: execute

 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);
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:11,代碼來源:admin.controller.php

示例6: execute

 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::_('/'));
         }
     }
 }
開發者ID:richardzcode,項目名稱:jofe,代碼行數:13,代碼來源:controller.php

示例7: execute

	/**
	 * 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);
	}
開發者ID:raeldc,項目名稱:com_learn,代碼行數:47,代碼來源:controller.php

示例8: execute

 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';
     }
 }
開發者ID:Simarpreet05,項目名稱:joomla,代碼行數:20,代碼來源:controller.php


注:本文中的JController::execute方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。