function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->loadLanguage('', JPATH_ADMINISTRATOR);
     $this->secret_key = $this->public_key = trim($this->params->get('secret_key'));
     $this->publishable_key = $this->public_key = trim($this->params->get('publishable_key'));
     $this->trans_type = $this->public_key = trim($this->params->get('transaction_type'));
     $this->auto_capture_time = $this->auto_capture_time = trim($this->params->get('auto_capture_time'));
     $this->timeout = $this->timeout = trim($this->params->get('timeout'));
     $this->endpoint = $this->endpoint = trim($this->params->get('endpoint'));
     $this->ispci = $this->ispci = trim($this->params->get('ispci'));
     $this->_j2version = $this->getVersion();
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * For php4 compatability we must not use the __constructor as a constructor for plugins
  * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
  * This causes problems with cross-referencing necessary for the observer design pattern.
  *
  * @param object $subject The object to observe
  * @param 	array  $config  An array that holds the plugin configuration
  * @since 2.5
  */
 function plgK2StorePayment_cash(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->loadLanguage('', JPATH_ADMINISTRATOR);
 }
Esempio n. 3
0
 /**
  * Constructor
  *
  * For php4 compatability we must not use the __constructor as a constructor for plugins
  * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
  * This causes problems with cross-referencing necessary for the observer design pattern.
  *
  * @param object $subject The object to observe
  * @param 	array  $config  An array that holds the plugin configuration
  * @since 2.5
  */
 function plgK2StorePayment_banktransfer(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->loadLanguage('com_k2store', JPATH_ADMINISTRATOR);
 }
Esempio n. 4
0
 /**
  * Constructor
  *
  * For php4 compatability we must not use the __constructor as a constructor for plugins
  * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
  * This causes problems with cross-referencing necessary for the observer design pattern.
  *
  * @param object $subject The object to observe
  * @param 	array  $config  An array that holds the plugin configuration
  * @since 1.5
  */
 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->loadLanguage('', JPATH_ADMINISTRATOR);
 }