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