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


PHP WC_Payment_Gateway::init_settings方法代码示例

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


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

示例1: init_settings

 public function init_settings()
 {
     parent::init_settings();
     $options_to_import = array('iamport_user_code', 'iamport_rest_key', 'iamport_rest_secret', 'checkout_methods');
     foreach ($options_to_import as $key) {
         $this->settings[$key] = wskl_get_option($key);
     }
     $this->settings['enabled'] = wskl_yes_or_no(wskl_is_option_enabled('enable_sym_pg') && wskl_get_option('pg_agency') == 'iamport' && in_array($this->checkout_method, $this->settings['checkout_methods']));
 }
开发者ID:EricKim65,项目名称:woosym-korean-localization,代码行数:9,代码来源:class-pg-iamport-common.php

示例2: init_settings

 public function init_settings()
 {
     parent::init_settings();
     $options_to_import = array('payapp_user_id', 'payapp_link_key', 'payapp_link_val', 'checkout_methods');
     foreach ($options_to_import as $key) {
         $this->settings[$key] = get_option(wskl_get_option_name($key));
     }
     $this->settings['enabled'] = wskl_yes_or_no(wskl_is_option_enabled('enable_sym_pg') && wskl_get_option('pg_agency') == 'payapp' && in_array($this->checkout_method, $this->get_option('checkout_methods')));
 }
开发者ID:EricKim65,项目名称:woosym-korean-localization,代码行数:9,代码来源:class-pg-payapp-common.php

示例3: init_settings

	/**
	* extend parent method for initialising settings, so that new settings can receive defaults
	*/
	public function init_settings() {
		parent::init_settings();

		if (is_callable(array($this, 'get_form_fields'))) {
			$form_fields = $this->get_form_fields();
		}
		else {
			// WooCommerce 2.0.20 or earlier
			$form_fields = $this->form_fields;
		}

		if ($form_fields) {
			foreach ($form_fields as $key => $value) {
				if (!isset($this->settings[$key])) {
					$this->settings[$key] = isset($value['default']) ? $value['default'] : '';
				}
			}
		}
	}
开发者ID:helloworld-digital,项目名称:katemorgan,代码行数:22,代码来源:class.EwayPaymentsWoo.php

示例4: init_settings

 /**
  * Init the based settings array and our own properties.
  *
  * @access public
  */
 public function init_settings()
 {
     // Load the settings.
     parent::init_settings();
     // Get setting values.
     $this->enabled = $this->get_option('enabled');
     $this->title = $this->get_option('title');
     $this->description = $this->get_option('description');
     $this->account_address = $this->get_option('account_address');
     $this->debug = $this->get_option('debug');
 }
开发者ID:Prospress,项目名称:woocommerce-stellar,代码行数:16,代码来源:class-wc-gateway-stellar.php


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