本文整理汇总了PHP中Cx\Core\Setting\Controller\Setting::show_section方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::show_section方法的具体用法?PHP Setting::show_section怎么用?PHP Setting::show_section使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cx\Core\Setting\Controller\Setting
的用法示例。
在下文中一共展示了Setting::show_section方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _settings
function _settings()
{
global $_ARRAYLANG;
$this->objTemplate->loadTemplateFile('module_gov_settings.html');
$this->_pageTitle = $_ARRAYLANG['TXT_SETTINGS'];
// save settings
if (isset($_REQUEST['tpl']) && $_REQUEST['tpl'] == 'save') {
if ($this->storeSettings()) {
$this->_strOkMessage = $_ARRAYLANG['TXT_EGOV_SETTINGS_UPDATED_SUCCESSFUL'];
} else {
$this->_strErrMessage = $_ARRAYLANG['TXT_EGOV_SETTINGS_UPDATE_FAILED'];
}
}
$this->objTemplate->setGlobalVariable($_ARRAYLANG);
$currency = EgovLibrary::GetSettings('set_paypal_currency');
$currencyMenuoptions = EgovManager::getCurrencyMenuoptions($currency);
$ipnchecked = EgovLibrary::GetSettings('set_paypal_ipn') == 1 ? 'checked="checked"' : '';
// PostFinance uses \Cx\Core\Setting
\Cx\Core\Setting\Controller\Setting::init('Egov', 'config');
// TODO: Temporary fix for the upgrade to \Cx\Core\Setting\Controller\Setting.
// Remove when the whole module is migrated.
$postfinance_shop_id = \Cx\Core\Setting\Controller\Setting::getValue('postfinance_shop_id', 'Egov');
if (empty($postfinance_shop_id)) {
self::errorHandler();
}
/**
* @var \Cx\Core\Html\Sigma
*/
$objTemplateLocal = new \Cx\Core\Html\Sigma();
if (\Cx\Core\Setting\Controller\Setting::show_section($objTemplateLocal, $_ARRAYLANG['TXT_EGOV_POSTFINANCE'], 'TXT_EGOV_')) {
$objTemplateLocal->parse('core_setting_sections');
$template = $objTemplateLocal->get('core_setting_sections');
$this->objTemplate->setVariable('EGOV_SETTINGS_POSTFINANCE', $template);
}
$this->objTemplate->setVariable(array('CALENDER_BACKGROUND' => EgovLibrary::GetSettings("set_calendar_background"), 'CALENDER_BORDER' => EgovLibrary::GetSettings("set_calendar_border"), 'CALENDER_COLOR_1' => EgovLibrary::GetSettings("set_calendar_color_1"), 'CALENDER_COLOR_2' => EgovLibrary::GetSettings("set_calendar_color_2"), 'CALENDER_COLOR_3' => EgovLibrary::GetSettings("set_calendar_color_3"), 'CALENDER_DATUM_DESC' => EgovLibrary::GetSettings("set_calendar_date_desc"), 'CALENDER_DATUM_LABEL' => EgovLibrary::GetSettings("set_calendar_date_label"), 'CALENDER_LEGENDE_1' => EgovLibrary::GetSettings("set_calendar_legende_1"), 'CALENDER_LEGENDE_2' => EgovLibrary::GetSettings("set_calendar_legende_2"), 'CALENDER_LEGENDE_3' => EgovLibrary::GetSettings("set_calendar_legende_3"), 'IPN_CHECKED' => $ipnchecked, 'ORDER_ENTRY_EMAIL' => EgovLibrary::GetSettings("set_orderentry_email"), 'ORDER_ENTRY_RECIPIENT' => EgovLibrary::GetSettings("set_orderentry_recipient"), 'ORDER_ENTRY_SENDER_EMAIL' => EgovLibrary::GetSettings("set_orderentry_sender"), 'ORDER_ENTRY_SENDER_NAME' => EgovLibrary::GetSettings("set_orderentry_name"), 'ORDER_ENTRY_SUBJECT' => EgovLibrary::GetSettings("set_orderentry_subject"), 'PAYPAL_EMAIL' => EgovLibrary::GetSettings("set_paypal_email"), 'SENDER_EMAIL' => EgovLibrary::GetSettings("set_sender_email"), 'SENDER_NAME' => EgovLibrary::GetSettings("set_sender_name"), 'STANDARD_RECIPIENT' => EgovLibrary::GetSettings("set_recipient_email"), 'STANDARD_STATE_EMAIL' => EgovLibrary::GetSettings("set_state_email"), 'STATE_SUBJECT' => EgovLibrary::GetSettings("set_state_subject"), 'EGOV_CURRENCY_MENUOPTIONS' => $currencyMenuoptions));
}