本文整理汇总了PHP中TemplateHandler::clearAll方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateHandler::clearAll方法的具体用法?PHP TemplateHandler::clearAll怎么用?PHP TemplateHandler::clearAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateHandler
的用法示例。
在下文中一共展示了TemplateHandler::clearAll方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clearCache
function clearCache()
{
global $sugar_config, $sugar_version;
$currentConfigArray = $this->readOverride();
foreach ($currentConfigArray as $key => $val) {
if (in_array($key, $this->allow_undefined) || isset($sugar_config[$key])) {
if (empty($val)) {
if (!empty($this->previous_sugar_override_config_array['stack_trace_errors']) && $key == 'stack_trace_errors') {
require_once 'include/TemplateHandler/TemplateHandler.php';
TemplateHandler::clearAll();
return;
}
}
}
}
}
示例2: logThis
logThis('End Updating the license ', $path);
set_upgrade_progress('end', 'done');
logThis('Cleaning up the session. Goodbye.');
unlinkUWTempFiles();
logThis('Cleaning up the session. Goodbye.');
resetUwSession();
// flag to say upgrade has completed
$_SESSION['upgrade_complete'] = true;
//Clear any third party caches
sugar_cache_reset_full();
//add the clean vardefs here
if (!class_exists('VardefManager')) {
}
VardefManager::clearVardef();
require_once 'include/TemplateHandler/TemplateHandler.php';
TemplateHandler::clearAll();
//also add the cache cleaning here.
if (function_exists('deleteCache')) {
deleteCache();
}
global $mod_strings;
global $current_language;
if (!isset($current_language) || $current_language == null) {
$current_language = 'en_us';
}
if (isset($GLOBALS['current_language']) && $GLOBALS['current_language'] != null) {
$current_language = $GLOBALS['current_language'];
}
$mod_strings = return_module_language($current_language, 'UpgradeWizard');
$stop = false;
$httpHost = $_SERVER['HTTP_HOST'];
示例3: clearCache
function clearCache()
{
global $sugar_config, $sugar_version;
list($oldConfig, $currentConfigArray) = $this->readOverride();
foreach ($currentConfigArray as $key => $val) {
if (in_array($key, $this->allow_undefined) || isset($sugar_config[$key])) {
if (empty($val)) {
if (!empty($this->previous_sugar_override_config_array['stack_trace_errors']) && $key == 'stack_trace_errors') {
require_once 'include/TemplateHandler/TemplateHandler.php';
TemplateHandler::clearAll();
return;
}
}
}
}
// Clear metadata config section only
MetaDataManager::refreshSectionCache(array(MetaDataManager::MM_CONFIG));
MetaDataManager::refreshSectionCache(array(MetaDataManager::MM_SERVERINFO));
}