本文整理汇总了PHP中Sugar_Smarty::clear_assign方法的典型用法代码示例。如果您正苦于以下问题:PHP Sugar_Smarty::clear_assign方法的具体用法?PHP Sugar_Smarty::clear_assign怎么用?PHP Sugar_Smarty::clear_assign使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sugar_Smarty
的用法示例。
在下文中一共展示了Sugar_Smarty::clear_assign方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
//// DB COLLATION
$collationOptions = $GLOBALS['db']->getCollationList();
if (!empty($collationOptions)) {
if (!isset($sugar_config['dbconfigoption']['collation'])) {
$sugar_config['dbconfigoption']['collation'] = $GLOBALS['db']->getDefaultCollation();
}
$sugar_smarty->assign('collationOptions', get_select_options_with_id(array_combine($collationOptions, $collationOptions), $sugar_config['dbconfigoption']['collation']));
}
//// END DB COLLATION
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//// PAGE OUTPUT
$sugar_smarty->assign('MOD', $mod_strings);
$sugar_smarty->assign('APP', $app_strings);
$sugar_smarty->assign('APP_LIST', $app_list_strings);
$sugar_smarty->assign('LANGUAGES', get_languages());
$sugar_smarty->assign("JAVASCRIPT", get_set_focus_js());
$sugar_smarty->assign('config', $sugar_config);
$sugar_smarty->assign('error', $errors);
$sugar_smarty->assign("exportCharsets", get_select_options_with_id($locale->getCharsetSelect(), $sugar_config['default_export_charset']));
//$sugar_smarty->assign('salutation', 'Mr.');
//$sugar_smarty->assign('first_name', 'John');
//$sugar_smarty->assign('last_name', 'Doe');
$sugar_smarty->assign('NAMEFORMATS', $locale->getUsableLocaleNameOptions($sugar_config['name_formats']));
if ($locale->invalidLocaleNameFormatUpgrade()) {
$sugar_smarty->assign('upgradeInvalidLocaleNameFormat', 'bad name format upgrade');
} else {
$sugar_smarty->clear_assign('upgradeInvalidLocaleNameFormat');
}
$sugar_smarty->assign('getNameJs', $locale->getNameJs());
$sugar_smarty->display('modules/Administration/Locale.tpl');