當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TemplateHandler::clearAll方法代碼示例

本文整理匯總了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;
                 }
             }
         }
     }
 }
開發者ID:sunmo,項目名稱:snowlotus,代碼行數:16,代碼來源:Configurator.php

示例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'];
開發者ID:netconstructor,項目名稱:sugarcrm_dev,代碼行數:31,代碼來源:end.php

示例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));
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:19,代碼來源:Configurator.php


注:本文中的TemplateHandler::clearAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。