/** * 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); if ($this->params->get('debug', 0)) { $this->_isLog = true; } }
/** * 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 plgJ2StorePayment_paypal(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); $this->_j2version = $this->getVersion(); if ($this->params->get('debug', 0)) { $this->_isLog = true; } }
/** * 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 plgJ2StorePayment_heartland(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); $this->_j2version = $this->getVersion(); $this->_isLog = $this->params->get('debug'); $this->_public_key = $this->params->get('public_key', ''); $this->_secret_key = $this->params->get('secret_key', ''); }
function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); $this->login_id = $this->params->get('merchant_email'); $this->tran_key = $this->params->get('enc_password'); if ($this->params->get('debug', 0)) { $this->_isLog = true; } }
function plgJ2StorePayment_sagepay(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); $this->login_id = $this->_getParam('merchant_email'); $this->tran_key = $this->_getParam('enc_password'); $this->_j2version = $this->getVersion(); if ($this->params->get('debug', 0)) { $this->_isLog = true; } }
/** * Constructs a PHP_CodeSniffer object. * * @param string $subject The number of spaces each tab represents. * @param string $config The charset of the sniffed files. * * @see process() * */ function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); $this->_j2version = $this->getVersion(); $this->code_arr = array('internal_server_error' => addslashes(JText::_('INTERNAL_SERVER_ERROR')), 'invalid_public_key' => addslashes(JText::_('FEEDBACK_CONFIG_ERROR_PUBLICKEY')), 'unknown_error' => addslashes(JText::_('UNKNOWN_ERROR')), 'invalid_payment_data' => addslashes(JText::_('INVALID_PAYMENT_DATA')), '3ds_cancelled' => addslashes(JText::_('3DS_CANCELLED')), 'field_invalid_card_number' => addslashes(JText::_('FEEDBACK_ERROR_CREDITCARD_NUMBER')), 'field_invalid_card_exp_year' => addslashes(JText::_('FIELD_INVALID_CARD_EXP_YEAR')), 'field_invalid_card_exp_month' => addslashes(JText::_('FIELD_INVALID_CARD_EXP_MONTH')), 'field_invalid_card_exp' => addslashes(JText::_('FIELD_INVALID_CARD_EXP')), 'field_invalid_card_cvc' => addslashes(JText::_('FEEDBACK_ERROR_CREDITCARD_CVC')), 'field_invalid_card_holder' => addslashes(JText::_('FEEDBACK_ERROR_CREDITCARD_HOLDER')), 'field_invalid_amount_int' => addslashes(JText::_('FIELD_INVALID_AMOUNT_INT')), 'field_invalid_amount' => addslashes(JText::_('FIELD_INVALID_AMOUNT')), 'field_invalid_currency' => addslashes(JText::_('FIELD_INVALID_CURRENCY')), 'field_invalid_account_number' => addslashes(JText::_('FIELD_INVALID_AMOUNT_NUMBER')), 'field_invalid_account_holder' => addslashes(JText::_('FIELD_INVALID_ACCOUNT_HOLDER')), 'field_invalid_bank_code' => addslashes(JText::_('FEEDBACK_ERROR_DIRECTDEBIT_BANKCODE'))); $mode = $this->params->get('sandbox', 0); if (!$mode) { $this->public_key = trim($this->params->get('live_public_key')); $this->private_key = trim($this->params->get('live_private_key')); } else { $this->public_key = trim($this->params->get('test_public_key')); $this->private_key = trim($this->params->get('test_private_key')); } }
/** * 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 __construct(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('com_j2store', JPATH_ADMINISTRATOR); }
function plgJ2StorePayment_online(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); }
/** * 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 plgJ2StorePayment_moneyorder(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('com_j2store', JPATH_ADMINISTRATOR); }
function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); $this->code_arr = array(); }