当前位置: 首页>>代码示例>>PHP>>正文


PHP JModelAdmin::cleanCache方法代码示例

本文整理汇总了PHP中JModelAdmin::cleanCache方法的典型用法代码示例。如果您正苦于以下问题:PHP JModelAdmin::cleanCache方法的具体用法?PHP JModelAdmin::cleanCache怎么用?PHP JModelAdmin::cleanCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JModelAdmin的用法示例。


在下文中一共展示了JModelAdmin::cleanCache方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: cleanCache

 /**
  * Clean the cache.
  * It also cleans the simplecustomrouter plugin cache, as the routes
  * configured by this component are used by that plugin.
  * 
  * This method is called when needed from parent models.
  * 
  * @param string $group The cache group
  * @param string $client_id The ID of the client
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     $conf = JFactory::getConfig();
     $options = array('defaultgroup' => 'simplecustomrouter', 'cachebase' => $conf->get('cache_path', JPATH_SITE . '/cache'));
     $cache = JCache::getInstance('', $options)->clean();
     parent::cleanCache($group, $client_id);
 }
开发者ID:A-Bush,项目名称:pprod,代码行数:17,代码来源:route.php

示例2: cleanCache

 /**
  * Custom clean the cache of com_knvbapi and knvbapi modules
  *
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_knvbapi');
     parent::cleanCache('mod_knvbapi');
     parent::cleanCache('mod_knvbapi_competities');
 }
开发者ID:esorone,项目名称:efcpw,代码行数:10,代码来源:competitie.php

示例3: cleanCache

 /**
  * Custom clean cache method for different clients
  *
  * @param   string   $group      The name of the plugin group to import (defaults to null).
  * @param   integer  $client_id  The client ID. [optional]
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_modules', $this->getClient());
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:14,代码来源:module.php

示例4: cleanCache

 /**
  * Custom clean cache method
  *
  * @since	1.6
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('_system');
     parent::cleanCache('com_languages');
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:10,代码来源:language.php

示例5: cleanCache

 /**
  * Custom clean cache method
  *
  * @since	1.6
  */
 function cleanCache()
 {
     parent::cleanCache('com_modules');
     parent::cleanCache('mod_menu');
 }
开发者ID:akksi,项目名称:jcg,代码行数:10,代码来源:item.php

示例6: cleanCache

 /**
  * Custom clean the cache of com_content and content modules
  *
  * @param   string   $group      The cache group
  * @param   integer  $client_id  The ID of the client
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_content');
     parent::cleanCache('mod_articles_archive');
     parent::cleanCache('mod_articles_categories');
     parent::cleanCache('mod_articles_category');
     parent::cleanCache('mod_articles_latest');
     parent::cleanCache('mod_articles_news');
     parent::cleanCache('mod_articles_popular');
 }
开发者ID:SysBind,项目名称:joomla-cms,代码行数:20,代码来源:article.php

示例7: cleanCache

 /**
  * Custom clean cache method
  *
  * @since	1.6
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_templates');
     parent::cleanCache('_system');
     Event::trigger('system.onCleanCache', array($group, $client_id));
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:11,代码来源:style.php

示例8: cleanCache

 /**
  * Custom clean the cache of com_content and content modules
  *
  * @since	1.6
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     $extension = JFactory::getApplication()->input->getCmd('extension');
     switch ($extension) {
         case 'com_tz_portfolio_plus':
             parent::cleanCache('com_tz_portfolio_plus');
             parent::cleanCache('mod_tz_portfolio_plus_articles');
             parent::cleanCache('mod_tz_portfolio_plus_articles_archive');
             parent::cleanCache('mod_tz_portfolio_plus_categories');
             parent::cleanCache('mod_tz_portfolio_plus_tags');
             break;
         default:
             parent::cleanCache($extension);
             break;
     }
 }
开发者ID:templaza,项目名称:tz_portfolio_plus,代码行数:21,代码来源:category.php

示例9: save

 /**
  * Method to save the form data.
  *
  * @param   array  $data  The form data.
  *
  * @return  boolean  True on success, False on error.
  */
 public function save($data)
 {
     parent::cleanCache('com_fabrik');
     return parent::save($data);
 }
开发者ID:rogeriocc,项目名称:fabrik,代码行数:12,代码来源:visualization.php

示例10: cleanCache

 /**
  * Custom clean the cache of com_componentarchitect and componentarchitect modules
  *
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_componentarchitect');
 }
开发者ID:esorone,项目名称:efcpw,代码行数:8,代码来源:codetemplate.php

示例11: cleanCache

 /**
  * Custom clean the cache of com_places and places modules
  *
  * @param   string   $group      The cache group
  * @param   integer  $client_id  The ID of the client
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_places');
     parent::cleanCache('mod_towns_archive');
 }
开发者ID:buyanov,项目名称:com_places,代码行数:15,代码来源:town.php

示例12: cleanCache

 /**
  * Custom clean the cache of com_projectfork and projectfork modules
  *
  */
 protected function cleanCache($group = 'com_pfrepo', $client_id = 0)
 {
     parent::cleanCache($group);
 }
开发者ID:sgershen,项目名称:Projectfork,代码行数:8,代码来源:note.php

示例13: cleanCache

 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_tz_portfolio_plus', 0);
     parent::cleanCache('com_tz_portfolio_plus', 1);
 }
开发者ID:templaza,项目名称:tz_portfolio_plus,代码行数:5,代码来源:addon.php

示例14: cleanCache

 /**
  * Custom clean cache method.
  *
  * @param   string   $group      The component name. [optional]
  * @param   integer  $client_id  The client ID. [optional]
  *
  * @return  void
  *
  * @since   2.5
  */
 protected function cleanCache($group = 'com_finder', $client_id = 1)
 {
     parent::cleanCache($group, $client_id);
 }
开发者ID:exntu,项目名称:joomla-cms,代码行数:14,代码来源:filter.php

示例15: cleanCache

 /**
  * Custom clean cache method, plugins are cached in 2 places for different clients
  *
  * @since	1.6
  */
 protected function cleanCache($group = null, $client_id = 0)
 {
     parent::cleanCache('com_plugins', 0);
     parent::cleanCache('com_plugins', 1);
 }
开发者ID:raeldc,项目名称:joomla-cms,代码行数:10,代码来源:plugin.php


注:本文中的JModelAdmin::cleanCache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。