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


PHP JControllerForm::execute方法代碼示例

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


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

示例1: execute

 /**
  * Execute.
  *
  * @param   string  $task  An optional associative array of configuration settings.
  *
  * @return void
  *
  * @since    1.7.0
  */
 public function execute($task)
 {
     if ($task != 'run') {
         $task = 'browse';
     }
     parent::execute($task);
 }
開發者ID:Joomla-Bible-Study,項目名稱:joomla_churchdirectory,代碼行數:16,代碼來源:geoupdate.php

示例2: execute

 /**
  * Override the execute method to clear the modules cache for non-display tasks.
  *
  * @param	string		The task to perform.
  * @return	mixed|false	The value returned by the called method, false in error case.
  * @since	1.6
  */
 public function execute($task)
 {
     parent::execute($task);
     // Clear the component's cache
     if ($task != 'edit' && $task != 'cancel' && $task != 'add') {
         $cache = JFactory::getCache('com_modules');
         $cache->clean();
     }
 }
開發者ID:reechalee,項目名稱:joomla1.6,代碼行數:16,代碼來源:module.php

示例3: execute

 public function execute($task)
 {
     parent::execute($task);
     // Clear the component's cache
     if ($task != 'display') {
         $cache = JFactory::getCache('com_phocadownload');
         $cache->clean();
     }
 }
開發者ID:jbelborja,項目名稱:lavid3,代碼行數:9,代碼來源:phocadownloadlayout.php

示例4: execute

 /**
  * Proxy for execute.
  *
  * If the task is an action which modifies data, the component cache is cleared.
  *
  * @since	1.6
  */
 public function execute($task)
 {
     parent::execute($task);
     // Clear the component's cache
     if (!in_array($task, array('display', 'edit', 'cancel'))) {
         $cache = JFactory::getCache();
         $cache->clean('com_templates');
         $cache->clean('_system');
     }
 }
開發者ID:Joomla-on-NoSQL,項目名稱:LaMojo,代碼行數:17,代碼來源:style.php

示例5: execute

 /**
  * Proxy for execute.
  *
  * If the task is an action which modifies data, the component cache is cleared.
  *
  * @since    1.6
  */
 public function execute($task)
 {
     switch ($task) {
         case 'cancel':
             $this->cancel();
             break;
         case 'save':
             $this->save();
             break;
         default:
             parent::execute($task);
             break;
     }
     // Clear the component's cache
     if (!in_array($task, array('display', 'edit', 'cancel'))) {
         $cache = JFactory::getCache();
         $cache->clean('com_gantry');
     }
 }
開發者ID:juanmcortez,項目名稱:Lectorum,代碼行數:26,代碼來源:template.php


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