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


PHP Setting::show_section方法代码示例

本文整理汇总了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));
 }
开发者ID:Niggu,项目名称:cloudrexx,代码行数:36,代码来源:EgovManager.class.php


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