本文整理匯總了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));
}