本文整理汇总了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) {