当前位置: 首页>>代码示例>>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;未经允许,请勿转载。