当前位置: 首页>>代码示例>>PHP>>正文


PHP SugarThemeRegistry::clearAllCaches方法代码示例

本文整理汇总了PHP中SugarThemeRegistry::clearAllCaches方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarThemeRegistry::clearAllCaches方法的具体用法?PHP SugarThemeRegistry::clearAllCaches怎么用?PHP SugarThemeRegistry::clearAllCaches使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SugarThemeRegistry的用法示例。


在下文中一共展示了SugarThemeRegistry::clearAllCaches方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: saveCompanyLogo

 /**
  * Saves the company logo to the custom directory for the default theme, so all themes can use it
  *
  * @param string $path path to the image to set as the company logo image
  */
 function saveCompanyLogo($path)
 {
     $path = $this->checkTempImage($path);
     mkdir_recursive('custom/' . SugarThemeRegistry::current()->getDefaultImagePath(), true);
     copy($path, 'custom/' . SugarThemeRegistry::current()->getDefaultImagePath() . '/company_logo.png');
     sugar_cache_clear('company_logo_attributes');
     SugarThemeRegistry::clearAllCaches();
 }
开发者ID:sunmo,项目名称:snowlotus,代码行数:13,代码来源:Configurator.php

示例2: foreach

foreach ($_SESSION['sugarMergeRunResults'] as $mergeModule => $mergeModuleFileList) {
    if (!empty($mergeModuleFileList)) {
        $skipLayouts = false;
    }
}
$stepNext = $skipLayouts ? $_REQUEST['step'] + 2 : $_REQUEST['step'] + 1;
$stepCancel = -1;
$stepRecheck = $_REQUEST['step'];
$_SESSION['step'][$steps['files'][$_REQUEST['step']]] = $stop ? 'failed' : 'success';
// clear out the theme cache
if (!class_exists('SugarThemeRegistry')) {
    require_once 'include/SugarTheme/SugarTheme.php';
}
$themeObject = SugarThemeRegistry::current();
$styleJSFilePath = $GLOBALS['sugar_config']['cache_dir'] . $themeObject->getJSPath() . DIRECTORY_SEPARATOR . 'style-min.js';
if (file_exists($styleJSFilePath)) {
    logThis("Rebuilding style js file: {$styleJSFilePath}");
    unlink($styleJSFilePath);
    SugarThemeRegistry::current()->clearJSCache();
    SugarThemeRegistry::current()->getJS();
}
SugarThemeRegistry::buildRegistry();
SugarThemeRegistry::clearAllCaches();
//Clean out the language files
logThis("Rebuilding language cache");
sugar_cache_reset_full();
LanguageManager::clearLanguageCache();
// re-minify the JS source files
$_REQUEST['root_directory'] = getcwd();
$_REQUEST['js_rebuild_concat'] = 'rebuild';
require_once 'jssource/minify.php';
开发者ID:razorinc,项目名称:sugarcrm-example,代码行数:31,代码来源:commit.php

示例3: testClearCacheAllThemes

 public function testClearCacheAllThemes()
 {
     SugarThemeRegistry::get($this->_themeName)->getCSSURL('style.css');
     $this->assertTrue(isset(SugarThemeRegistry::get($this->_themeName)->_cssCache['style.css']), 'File style.css should exist in cache');
     SugarThemeRegistry::clearAllCaches();
     SugarThemeRegistry::buildRegistry();
     $this->assertFalse(isset(SugarThemeRegistry::get($this->_themeName)->_cssCache['style.css']), 'File style.css shouldn\'t exist in cache');
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:8,代码来源:SugarThemeRegistryTest.php

示例4: clearThemeCache

 public function clearThemeCache()
 {
     global $mod_strings;
     if ($this->show_output) {
         echo "<h3>{$mod_strings['LBL_QR_CLEARTHEMECACHE']}</h3>";
     }
     SugarThemeRegistry::clearAllCaches();
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:8,代码来源:QuickRepairAndRebuild.php

示例5: saveCompanyLogo

 /**
  * Saves the company logo to the custom directory for the default theme, so all themes can use it
  *
  * @param string $path path to the image to set as the company logo image
  */
 function saveCompanyLogo($path)
 {
     mkdir_recursive('custom/' . SugarThemeRegistry::current()->getDefaultImagePath(), true);
     copy($path, 'custom/' . SugarThemeRegistry::current()->getDefaultImagePath() . '/company_logo.png');
     SugarThemeRegistry::clearAllCaches();
 }
开发者ID:nerdystudmuffin,项目名称:dashlet-subpanels,代码行数:11,代码来源:Configurator.php

示例6: saveCompanyLogo

 /**
  * Saves the company logo to the custom directory for the default theme, so all themes can use it
  *
  * @param string $path path to the image to set as the company logo image
  */
 function saveCompanyLogo($path)
 {
     $path = $this->checkTempImage($path);
     $logo = create_custom_directory(SugarThemeRegistry::current()->getDefaultImagePath() . '/company_logo.png');
     copy($path, $logo);
     SugarAutoLoader::addToMap($logo);
     sugar_cache_clear('company_logo_attributes');
     SugarThemeRegistry::clearAllCaches();
     SugarThemeRegistry::current()->clearImageCache('company_logo.png');
     MetaDataManager::refreshSectionCache(array(MetaDataManager::MM_LOGOURL));
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:16,代码来源:Configurator.php

示例7: clearThemeCache

 public function clearThemeCache()
 {
     global $mod_strings;
     if ($this->show_output) {
         echo "<h3>{$mod_strings['LBL_QR_CLEARTHEMECACHE']}</h3>";
     }
     SugarThemeRegistry::clearAllCaches();
     //Clear Sidecar Themes CSS files
     $this->_clearCache(sugar_cached('themes/clients/'), '.css');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:10,代码来源:QuickRepairAndRebuild.php


注:本文中的SugarThemeRegistry::clearAllCaches方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。