本文整理汇总了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();
}
示例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']);
}
}
示例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();
}
}
示例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();
}
}