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


PHP SugarThemeRegistry::buildRegistry方法代码示例

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


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

示例1: execute

 /**
  * Perform execution of the application. This method is called from index2.php
  */
 function execute()
 {
     global $sugar_config;
     if (!empty($sugar_config['default_module'])) {
         $this->default_module = $sugar_config['default_module'];
     }
     $module = $this->default_module;
     if (!empty($_REQUEST['module'])) {
         $module = $_REQUEST['module'];
     }
     insert_charset_header();
     $this->setupPrint();
     $this->controller = ControllerFactory::getController($module);
     // If the entry point is defined to not need auth, then don't authenticate.
     if (empty($_REQUEST['entryPoint']) || $this->controller->checkEntryPointRequiresAuth($_REQUEST['entryPoint'])) {
         $this->loadUser();
         $this->ACLFilter();
         $this->preProcess();
         $this->controller->preProcess();
         $this->checkHTTPReferer();
     }
     SugarThemeRegistry::buildRegistry();
     $this->loadLanguages();
     $this->checkDatabaseVersion();
     $this->loadDisplaySettings();
     //$this->loadLicense();
     $this->loadGlobals();
     $this->setupResourceManagement($module);
     $this->controller->execute();
     sugar_cleanup();
 }
开发者ID:switcode,项目名称:SuiteCRM,代码行数:34,代码来源:SugarApplication.php

示例2: execute

 /**
  * Perform execution of the application. This method is called from index2.php
  */
 function execute()
 {
     global $sugar_config;
     if (!empty($sugar_config['default_module'])) {
         $this->default_module = $sugar_config['default_module'];
     }
     $module = $this->default_module;
     if (!empty($_REQUEST['module'])) {
         $module = $_REQUEST['module'];
     }
     insert_charset_header();
     $this->setupPrint();
     $this->controller = ControllerFactory::getController($module);
     // if the entry point is defined to not need auth, then don't authenicate
     if (empty($_REQUEST['entryPoint']) || $this->controller->checkEntryPointRequiresAuth($_REQUEST['entryPoint'])) {
         $this->loadUser();
         $this->ACLFilter();
         $this->preProcess();
         $this->controller->preProcess();
     }
     if (ini_get('session.auto_start') !== false) {
         $_SESSION['breadCrumbs'] = new BreadCrumbStack($GLOBALS['current_user']->id);
     }
     SugarThemeRegistry::buildRegistry();
     $this->loadLanguages();
     $this->checkDatabaseVersion();
     $this->loadDisplaySettings();
     $this->loadLicense();
     $this->loadGlobals();
     $this->setupResourceManagement($module);
     $this->controller->execute();
     sugar_cleanup();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:36,代码来源:SugarApplication.php

示例3: 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

示例4: execute

 /**
  * Perform execution of the application. This method is called from index2.php
  */
 function execute()
 {
     global $sugar_config;
     if (!empty($sugar_config['default_module'])) {
         $this->default_module = $sugar_config['default_module'];
     }
     $module = $this->default_module;
     if (!empty($_REQUEST['module'])) {
         $module = $_REQUEST['module'];
     }
     insert_charset_header();
     $this->setupPrint();
     $this->controller = ControllerFactory::getController($module);
     // make sidecar view load faster
     // TODO the rest of the code will be removed as soon as we migrate all modules to sidecar
     if ($this->controller->action === 'sidecar' || $this->controller->action === 'index' && $this->controller->module === 'Home' && (empty($_REQUEST['entryPoint']) || isset($_REQUEST['action']) && $_REQUEST['action'] === 'DynamicAction') || empty($_REQUEST)) {
         // check for not authorised users
         $this->checkMobileRedirect();
         $this->controller->action = 'sidecar';
         $this->controller->execute();
         return;
     } elseif ($this->controller->action === 'Login' && $this->controller->module === 'Users') {
         // TODO remove this when we are "iFrame free"
         // by default login location is base site URL
         $location = rtrim($sugar_config['site_url'], '/') . '/';
         $loginRedirect = $this->getLoginRedirect();
         $loginVars = $this->getLoginVars();
         if (isset($loginVars['module'])) {
             if (isModuleBWC($loginVars['module'])) {
                 // in case if login module is BWC, location is the BWC URL (as if the user was already
                 // logged in), since authentication is managed by Sidecar, not the module itself
                 $location .= '#bwc/' . $loginRedirect;
             } else {
                 // otherwise compose basic Sidecar route
                 $location .= '#' . rawurlencode($loginVars['module']);
                 if (isset($loginVars['record'])) {
                     $location .= '/' . rawurlencode($loginVars['record']);
                 }
             }
         }
         echo '<script>
         if (parent.location == window.location) {
             window.location = ' . json_encode($location) . ';
         } else {
             window.top.SUGAR.App.bwc.login(' . json_encode($loginRedirect) . ');
         }
         </script>';
         return;
     }
     // If the entry point is defined to not need auth, then don't authenticate.
     if (empty($_REQUEST['entryPoint']) || $this->controller->checkEntryPointRequiresAuth($_REQUEST['entryPoint'])) {
         $this->startSession();
         // check for authorised users
         $this->checkMobileRedirect();
         $this->loadUser();
         $this->ACLFilter();
         $this->preProcess();
         $this->controller->preProcess();
         $this->checkHTTPReferer();
         $this->csrfAuthenticate();
     }
     SugarThemeRegistry::buildRegistry();
     $this->loadLanguages();
     $this->checkDatabaseVersion();
     $this->loadDisplaySettings();
     $this->loadLicense();
     $this->loadGlobals();
     $this->setupResourceManagement($module);
     $this->controller->execute();
     sugar_cleanup();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:74,代码来源:SugarApplication.php

示例5: 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

示例6: removeAllCreatedAnonymousThemes

 public static function removeAllCreatedAnonymousThemes()
 {
     foreach (self::getCreatedThemeNames() as $name) {
         if (is_dir('themes/' . $name)) {
             rmdir_recursive('themes/' . $name);
         }
         if (is_dir('custom/themes/' . $name)) {
             rmdir_recursive('custom/themes/' . $name);
         }
         if (is_dir(sugar_cached('themes/') . $name)) {
             rmdir_recursive(sugar_cached('themes/') . $name);
         }
     }
     SugarThemeRegistry::buildRegistry();
 }
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:15,代码来源:SugarTestThemeUtilities.php

示例7: testBuildRegistry

 public function testBuildRegistry()
 {
     $this->markTestSkipped('Skip for community edition builds for now as this was to test a ce->pro upgrade');
     SugarThemeRegistry::buildRegistry();
     $themeObject = SugarThemeRegistry::current();
 }
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:6,代码来源:Bug48571Test.php


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