當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。