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


PHP vmPSPlugin::__construct方法代码示例

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


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

示例1:

	function __construct (& $subject, $config) {

		//if (self::$_this)
		//   return self::$_this;
		parent::__construct($subject, $config);

		$this->_loggable = TRUE;
		$this->tableFields = array_keys($this->getTableSQLFields());
		$this->_tablepkey = 'id';
		$this->_tableId = 'id';
		$varsToPush = $this->getVarsToPush();
		//$this->setEncryptedFields(array('params'));
		$this->setConfigParameterable($this->_configTableFieldName, $varsToPush);

		$this->setCryptedFields(array('accessKey', 'secretKey'));
		$amazon_library = JPATH_SITE . DS . 'plugins' . DS . 'vmpayment' . DS . 'amazon' . DS . 'library' ;


		//set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . "/../../."));
		set_include_path($amazon_library);
		$this->loadAmazonClass('OffAmazonPaymentsService_Client');
		if (!JFactory::getApplication()->isSite()) {
			JFactory::getDocument()->addScript(JURI::root(true) . '/plugins/vmpayment/amazon/assets/js/admin.js');
			JFactory::getDocument()->addStyleSheet(JURI::root(true) . '/plugins/vmpayment/amazon/assets/css/amazon-admin.css');
		}

	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:27,代码来源:amazon.php

示例2: array

	function __construct (& $subject, $config) {

		parent::__construct ($subject, $config);

		$this->_loggable = TRUE;
		$this->_debug = TRUE;
		$this->tableFields = array_keys ($this->getTableSQLFields ());
		$this->_tablepkey = 'id'; //virtuemart_moneybookers_id';
		$this->_tableId = 'id'; //'virtuemart_moneybookers_id';

		$varsToPush = array('pay_to_email'        => array('', 'char'),
		                    'hide_login'          => array(0, 'int'),
		                    'logourl'             => array('', 'char'),
		                    'secret_word'         => array('', 'char'),
		                    'payment_currency'    => array('', 'char'),
		                    'payment_logos'       => array('', 'char'),
		                    'countries'           => array('', 'char'),
		                    'cost_per_transaction'
		                                          => array('', 'int'),
		                    'cost_percent_total'
		                                          => array('', 'int'),
		                    'min_amount'          => array('', 'int'),
		                    'max_amount'          => array('', 'int'),
		                    'tax_id'              => array(0, 'int'),
		                    'countries'           => array('', 'char'),
		                    'status_pending'      => array('', 'char'),
		                    'status_success'      => array('', 'char'),
		                    'status_canceled'     => array('', 'char'));

		$this->setConfigParameterable ($this->_configTableFieldName, $varsToPush);
	}
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:31,代码来源:moneybookers.php

示例3: array

	function __construct (& $subject, $config) {

		parent::__construct ($subject, $config);
		// unique filelanguage for all moneybookers methods
		$jlang = JFactory::getLanguage ();
		$jlang->load ('plg_vmpayment_moneybookers', JPATH_ADMINISTRATOR, NULL, TRUE);
		$this->_loggable = TRUE;
		$this->_debug = TRUE;
		$this->tableFields = array_keys ($this->getTableSQLFields ());
		$this->_tablepkey = 'id'; //virtuemart_moneybookers_id';
		$this->_tableId = 'id'; //'virtuemart_moneybookers_id';

		$varsToPush = array('pay_to_email'        => array('', 'char'),
		                    'hide_login'          => array(0, 'int'),
		                    'logourl'             => array('', 'char'),
		                    'secret_word'         => array('', 'char'),
		                    'payment_currency'    => array('', 'char'),
		                    'payment_logos'       => array('', 'char'),
		                    'countries'           => array('', 'char'),
		                    'cost_per_transaction'
		                                          => array('', 'int'),
		                    'cost_percent_total'
		                                          => array('', 'int'),
		                    'min_amount'          => array('', 'int'),
		                    'max_amount'          => array('', 'int'),
		                    'tax_id'              => array(0, 'int'),
		                    'countries'           => array('', 'char'),
		                    'status_pending'      => array('', 'char'),
		                    'status_success'      => array('', 'char'),
		                    'status_canceled'     => array('', 'char'));

		$this->setConfigParameterable ($this->_configTableFieldName, $varsToPush);
	}
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:33,代码来源:moneybookers.php

示例4: array

	function __construct (& $subject, $config) {

		parent::__construct($subject, $config);

		$this->_loggable = TRUE;
		$this->tableFields = array_keys($this->getTableSQLFields());
		$this->_tablepkey = 'id'; //virtuemart_sofort_id';
		$this->_tableId = 'id'; //'virtuemart_sofort_id';

		$varsToPush = array('payment_logos' => array('', 'char'),
		                    'configuration_key' => array('', 'char'),
		                    'buyer_protection' => array('', 'int'),
		                    'payment_currency' => array('', 'int'),
		                    'email_currency' => array('', 'int'),
		                    'countries' => array('', 'char'),
		                    'min_amount' => array('', 'float'),
		                    'max_amount' => array('', 'float'),
		                    'cost_per_transaction' => array('', 'char'),
		                    'cost_percent_total' => array('', 'char'),
		                    'tax_id' => array('', 'int'),
		                    'status_pending' => array('', 'char'),
		                    'status_received' => array('', 'char'),
		                    'status_loss' => array('', 'char'),
		                    'status_refunded' => array('', 'char'),
		                    'debug' => array('', 'int'),
		);

		$this->setConfigParameterable($this->_configTableFieldName, $varsToPush);

	}
开发者ID:sergy444,项目名称:joomla,代码行数:30,代码来源:sofort.php

示例5: array

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('baokim_merchant_email' => array('', 'char'), 'baokim_merchant_id' => array('', 'char'), 'baokim_secure_pass' => array('', 'char'), 'payment_currency' => array(0, 'int'), 'debug' => array(0, 'int'), 'status_pending' => array('', 'char'), 'status_success' => array('', 'char'), 'status_canceled' => array('', 'char'), 'min_amount' => array(0, 'int'), 'max_amount' => array(0, 'int'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:8,代码来源:baokim.php

示例6: array

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_logos' => array('', 'char'), 'countries' => array(0, 'int'), 'payment_order_total' => 'decimal(15,5) NOT NULL DEFAULT \'0.00000\' ', 'payment_currency' => array(0, 'int'), 'min_amount' => array(0, 'int'), 'max_amount' => array(0, 'int'), 'cost_per_transaction' => array(0, 'int'), 'cost_percent_total' => array(0, 'int'), 'tax_id' => array(0, 'int'), 'paykeeper_secret' => array('', 'string'), 'status_success' => array('', 'char'), 'status_pending' => array('', 'char'), 'status_canceled' => array('', 'char'), 'paykeeper_payment_form_url' => array('', 'string'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:arkane0906,项目名称:lasercut-bootstrap,代码行数:8,代码来源:paykeeper.php

示例7: array

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_logos' => array('', 'char'), 'countries' => array(0, 'int'), 'payment_currency' => array(0, 'int'), 'merchant_id' => array('', 'string'), 'secret_key' => array('', 'string'), 'status_success' => array('', 'char'), 'status_pending' => array('', 'char'), 'status_canceled' => array('', 'char'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:saxum2010,项目名称:kaznachey_Joomla-virtuemart-2.5-2.0.x,代码行数:8,代码来源:kaznachey.php

示例8:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:Zasilkovna,项目名称:virtuemart3-joomla2,代码行数:8,代码来源:zasilkovna.php

示例9: __construct

 /**
  * @param       JDispatcher     $dispatcher         Joomla dispatcher
  * @param       array           $config             Plugin config
  */
 public function __construct(JDispatcher $dispatcher, array $config)
 {
     parent::__construct($dispatcher, $config);
     $this->_tablepkey = 'id';
     $this->_tableId = 'id';
     $this->tableFields = array_keys($this->getTableSQLFields());
     $this->setConfigParameterable($this->_configTableFieldName, $this->getVarsToPush());
 }
开发者ID:payneteasy,项目名称:php-plugin-joomla-2,代码行数:12,代码来源:paynet.php

示例10: array

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('Client_Title' => array('', 'char'), 'Short_Names' => array('', 'int'), 'Free_Shipping' => array('', 'int'), 'Free_From' => array('', 'char'), 'Only_Estonia' => array('', 'int'), 'small' => array('', 'char'), 'medium' => array('', 'char'), 'large' => array('', 'char'), 'calc_shipping' => array('', 'int'), 'tax_id' => array('', 'int'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:jflash,项目名称:moodulid25,代码行数:8,代码来源:post24.php

示例11:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     // Insert javascript into the head
     $document = JFactory::getDocument();
     $document->addScript(JURI::base() . "plugins/vmuserfield/mds_validation/mds_collivery.js");
     $document->addScriptDeclaration('base_url = "' . JURI::base() . '";');
 }
开发者ID:Zash22,项目名称:Collivery-Virtuemart,代码行数:8,代码来源:mds_validation.php

示例12: array

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_currency' => array(0, 'int'), 'status_success' => array(0, "int"), 'status_canceled' => array(0, "int"), 'payment_logos' => array('', 'char'), 'priv_key' => array('', 'text'), 'pub_key' => array('', 'text'), 'VK_SND_ID' => array('', 'string'), 'priv_pass' => array('', 'string'), 'countries' => array('', 'string'), 'return' => array('', 'text'), 'cancel' => array('', "text"), 'url' => array('', 'text'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:jflash,项目名称:moodulid25,代码行数:8,代码来源:seb.php

示例13: __construct

 public function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     JFactory::getLanguage()->load('com_virtuemart', JPATH_ADMINISTRATOR);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('destination_url' => array('https://payment.maksekeskus.ee/pay/1/signed.html', 'string'), 'shop_id' => array('', 'string'), 'api_secret' => array('', 'string'), 'currency' => array('', 'string'), 'locale' => array('et', 'string'), 'return' => array(JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived'), 'string'), 'status_success' => array(0, 'int'), 'status_canceled' => array(0, 'int'), 'countries' => array('', 'string'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:jflash,项目名称:moodulid25,代码行数:9,代码来源:maksekeskus.php

示例14: array

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $jlang = JFactory::getLanguage();
     $jlang->load('plg_vmpayment_payeer', JPATH_ADMINISTRATOR, NULL, TRUE);
     $this->_loggable = true;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = array('payment_logos' => array('', 'char'), 'countries' => array(0, 'int'), 'payment_currency' => array(0, 'int'), 'merchant_url' => array('https://payeer.com/merchant/', 'string'), 'merchant_id' => array('', 'string'), 'secret_key' => array('', 'string'), 'status_success' => array('', 'char'), 'status_pending' => array('', 'char'), 'status_canceled' => array('', 'char'), 'order_desc' => array('', 'string'), 'ip_filter' => array('', 'string'), 'admin_email' => array('', 'string'), 'log_file' => array('', 'string'));
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
 }
开发者ID:dldemoks,项目名称:Joomla-3.4.8---Virtuemart-3.0.9,代码行数:10,代码来源:payeer.php

示例15:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->_loggable = TRUE;
     $this->tableFields = array_keys($this->getTableSQLFields());
     $varsToPush = $this->getVarsToPush();
     $this->setConfigParameterable($this->_configTableFieldName, $varsToPush);
     plgVmPaymentKlarnaCheckout::includeKlarnaFiles();
     VmConfig::loadJLang('plg_vmpayment_klarna');
 }
开发者ID:virtuemart-fr,项目名称:virtuemart-fr,代码行数:10,代码来源:klarnacheckout.php


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