本文整理汇总了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);
}
示例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');
}
示例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());
}
示例4: cleanCache
/**
* Custom clean cache method
*
* @since 1.6
*/
protected function cleanCache($group = null, $client_id = 0)
{
parent::cleanCache('_system');
parent::cleanCache('com_languages');
}
示例5: cleanCache
/**
* Custom clean cache method
*
* @since 1.6
*/
function cleanCache()
{
parent::cleanCache('com_modules');
parent::cleanCache('mod_menu');
}
示例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');
}
示例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));
}
示例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;
}
}
示例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);
}
示例10: cleanCache
/**
* Custom clean the cache of com_componentarchitect and componentarchitect modules
*
*/
protected function cleanCache($group = null, $client_id = 0)
{
parent::cleanCache('com_componentarchitect');
}
示例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');
}
示例12: cleanCache
/**
* Custom clean the cache of com_projectfork and projectfork modules
*
*/
protected function cleanCache($group = 'com_pfrepo', $client_id = 0)
{
parent::cleanCache($group);
}
示例13: cleanCache
protected function cleanCache($group = null, $client_id = 0)
{
parent::cleanCache('com_tz_portfolio_plus', 0);
parent::cleanCache('com_tz_portfolio_plus', 1);
}
示例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);
}
示例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);
}