本文整理汇总了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');
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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() . '";');
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}