本文整理匯總了PHP中Configurator::clearCache方法的典型用法代碼示例。如果您正苦於以下問題:PHP Configurator::clearCache方法的具體用法?PHP Configurator::clearCache怎麽用?PHP Configurator::clearCache使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Configurator
的用法示例。
在下文中一共展示了Configurator::clearCache方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: displayHeader
//.........這裏部分代碼省略.........
foreach (query_module_access_list($current_user) as $module) {
// Bug 25948 - Check for the module being in the moduleList
if (isset($app_list_strings['moduleList'][$module])) {
$fullModuleList[$module] = $app_list_strings['moduleList'][$module];
}
}
if (!should_hide_iframes()) {
$iFrame = new iFrame();
$frames = $iFrame->lookup_frames('tab');
foreach ($frames as $key => $values) {
$fullModuleList[$key] = $values;
}
} elseif (isset($fullModuleList['iFrames'])) {
unset($fullModuleList['iFrames']);
}
if ($user_navigation_paradigm == 'gm' && isset($themeObject->group_tabs) && $themeObject->group_tabs) {
// We are using grouped tabs
require_once 'include/GroupedTabs/GroupedTabStructure.php';
$groupedTabsClass = new GroupedTabStructure();
$modules = query_module_access_list($current_user);
//handle with submoremodules
$max_tabs = $current_user->getPreference('max_subtabs');
// If the max_tabs isn't set incorrectly, set it within the range, to the default max sub tabs size
if (!isset($max_tabs) || $max_tabs <= 0 || $max_tabs > 10) {
// We have a default value. Use it
if (isset($GLOBALS['sugar_config']['default_max_subtabs'])) {
// As of 6.1, we shouldn't have a max subtabs higher than 10.
// If it's larger, bring it down to the max and save it in the config override
if ($GLOBALS['sugar_config']['default_max_subtabs'] > 10) {
require_once 'modules/Configurator/Configurator.php';
$configurator = new Configurator();
$configurator->config['default_max_subtabs'] = '10';
$configurator->handleOverride();
$configurator->clearCache();
}
$max_tabs = $GLOBALS['sugar_config']['default_max_subtabs'];
} else {
$max_tabs = 8;
}
}
$subMoreModules = false;
$groupTabs = $groupedTabsClass->get_tab_structure(get_val_array($modules));
// We need to put this here, so the "All" group is valid for the user's preference.
$groupTabs[$app_strings['LBL_TABGROUP_ALL']]['modules'] = $fullModuleList;
// Setup the default group tab.
$allGroup = $app_strings['LBL_TABGROUP_ALL'];
$ss->assign('currentGroupTab', $allGroup);
$currentGroupTab = $allGroup;
$usersGroup = $current_user->getPreference('theme_current_group');
// Figure out which tab they currently have selected (stored as a user preference)
if (!empty($usersGroup) && isset($groupTabs[$usersGroup])) {
$currentGroupTab = $usersGroup;
} else {
$current_user->setPreference('theme_current_group', $currentGroupTab);
}
$ss->assign('currentGroupTab', $currentGroupTab);
$usingGroupTabs = true;
} else {
// Setup the default group tab.
$ss->assign('currentGroupTab', $app_strings['LBL_TABGROUP_ALL']);
$usingGroupTabs = false;
$groupTabs[$app_strings['LBL_TABGROUP_ALL']]['modules'] = $fullModuleList;
}
$topTabList = array();
// Now time to go through each of the tab sets and fix them up.
foreach ($groupTabs as $tabIdx => $tabData) {