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


PHP RepairAndClear::clearTpls方法代码示例

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


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

示例1: RepairAndClear

 function zd_TicketsViewDetail()
 {
     parent::SugarView();
     $repair = new RepairAndClear();
     $repair->module_list = array('zd_Tickets');
     $repair->clearTpls();
 }
开发者ID:nunoabc,项目名称:Web2,代码行数:7,代码来源:view.detail.php

示例2: handleOverride

 function handleOverride($fromParseLoggerSettings = false)
 {
     global $sugar_config, $sugar_version;
     $sc = SugarConfig::getInstance();
     $overrideArray = $this->readOverride();
     $this->previous_sugar_override_config_array = $overrideArray;
     $diffArray = deepArrayDiff($this->config, $sugar_config);
     $overrideArray = sugarArrayMergeRecursive($overrideArray, $diffArray);
     // To remember checkbox state
     if (!$this->useAuthenticationClass && !$fromParseLoggerSettings) {
         if (isset($overrideArray['authenticationClass']) && $overrideArray['authenticationClass'] == 'SAMLAuthenticate') {
             unset($overrideArray['authenticationClass']);
         }
     }
     $overideString = "<?php\n/***CONFIGURATOR***/\n";
     sugar_cache_put('sugar_config', $this->config);
     $GLOBALS['sugar_config'] = $this->config;
     //print_r($overrideArray);
     //Bug#53013: Clean the tpl cache if action menu style has been changed.
     if (isset($overrideArray['enable_action_menu']) && (!isset($this->previous_sugar_override_config_array['enable_action_menu']) || $overrideArray['enable_action_menu'] != $this->previous_sugar_override_config_array['enable_action_menu'])) {
         require_once 'modules/Administration/QuickRepairAndRebuild.php';
         $repair = new RepairAndClear();
         $repair->module_list = array();
         $repair->clearTpls();
     }
     foreach ($overrideArray as $key => $val) {
         if (in_array($key, $this->allow_undefined) || isset($sugar_config[$key])) {
             if (is_string($val) && strcmp($val, 'true') == 0) {
                 $val = true;
                 $this->config[$key] = $val;
             }
             if (is_string($val) && strcmp($val, 'false') == 0) {
                 $val = false;
                 $this->config[$key] = false;
             }
         }
         $overideString .= override_value_to_string_recursive2('sugar_config', $key, $val);
     }
     $overideString .= '/***CONFIGURATOR***/';
     $this->saveOverride($overideString);
     if (isset($this->config['logger']['level']) && $this->logger) {
         $this->logger->setLevel($this->config['logger']['level']);
     }
 }
开发者ID:sunmo,项目名称:snowlotus,代码行数:44,代码来源:Configurator.php

示例3: isset

 function action_popupSave()
 {
     $this->view = 'popupview';
     $packageName = isset($_REQUEST['view_package']) && strtolower($_REQUEST['view_package']) != 'studio' ? $_REQUEST['view_package'] : null;
     require_once 'modules/ModuleBuilder/parsers/ParserFactory.php';
     $parser = ParserFactory::getParser($_REQUEST['view'], $_REQUEST['view_module'], $packageName);
     $parser->handleSave();
     if (empty($packageName)) {
         include_once 'modules/Administration/QuickRepairAndRebuild.php';
         global $mod_strings;
         $mod_strings['LBL_ALL_MODULES'] = 'all_modules';
         $repair = new RepairAndClear();
         $repair->show_output = false;
         $class_name = $GLOBALS['beanList'][$_REQUEST['view_module']];
         $repair->module_list = array($class_name);
         $repair->clearTpls();
     }
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:18,代码来源:controller.php

示例4: action_popupSave

 public function action_popupSave()
 {
     $this->view = 'popupview';
     $packageName = isset($_REQUEST['view_package']) && strtolower($_REQUEST['view_package']) != 'studio' ? $_REQUEST['view_package'] : null;
     $parser = ParserFactory::getParser($_REQUEST['view'], $_REQUEST['view_module'], $packageName);
     $parser->handleSave();
     // Save popupdefs too because it's used on BWC pages (related fields).
     $parser = ParserFactory::getParser(MB_POPUPLIST, $_REQUEST['view_module'], $packageName);
     $parser->handleSave();
     if (empty($packageName)) {
         include_once 'modules/Administration/QuickRepairAndRebuild.php';
         global $mod_strings;
         $mod_strings['LBL_ALL_MODULES'] = 'all_modules';
         $repair = new RepairAndClear();
         $repair->show_output = false;
         $class_name = $GLOBALS['beanList'][$_REQUEST['view_module']];
         $repair->module_list = array($class_name);
         $repair->clearTpls();
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:20,代码来源:controller.php


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