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


PHP hikashopPaymentPlugin::__construct方法代码示例

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


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

示例1:

 function __construct(&$subject, $config)
 {
     $this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X', 'Be2Bill');
     $this->pluginConfig['cancel_url'][2] = HIKASHOP_LIVE . "index.php?option=com_hikashop&ctrl=order&task=cancel_order";
     $this->pluginConfig['return_url'][2] = HIKASHOP_LIVE . "index.php?option=com_hikashop&ctrl=checkout&task=after_end";
     $this->pluginConfig['notify_url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=' . $this->name . '&tmpl=component';
     return parent::__construct($subject, $config);
 }
开发者ID:q0821,项目名称:esportshop,代码行数:8,代码来源:be2bill.php

示例2:

 function __construct(&$subject, $config)
 {
     $notif = HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=' . $this->name . '&tmpl=component';
     $this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X', 'Paypal');
     $lang = JFactory::getLanguage();
     $this->button = '<div id="paypal_express_button" style="width:144px; height:46px; margin-top:15px;"><a href="' . $notif . '&setExpressCheckout=1"><img src="https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image&buttontype=ecshortcut&locale=' . str_replace('-', '_', $lang->get('tag')) . '" align="left"></a></div>';
     return parent::__construct($subject, $config);
 }
开发者ID:q0821,项目名称:esportshop,代码行数:8,代码来源:paypalexpress.php

示例3: strtoupper

 function __construct(&$subject, $config)
 {
     $lang = JFactory::getLanguage();
     $locale = strtoupper(substr($lang->get('tag'), 0, 2));
     $this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X', 'Payza');
     $this->pluginConfig['status_url'][0] = JText::sprintf('STATUS_URL', 'Payza');
     $this->pluginConfig['status_url'][2] = htmlentities(HIKASHOP_LIVE . 'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=alertpay&tmpl=component&lang=' . strtolower($locale));
     return parent::__construct($subject, $config);
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:9,代码来源:alertpay.php

示例4:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:4,代码来源:paypaladvanced.php

示例5:

 function __construct(&$subject, $config)
 {
     $this->pluginConfig['ipaddress'][2] = $_SERVER['SERVER_ADDR'];
     return parent::__construct($subject, $config);
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:5,代码来源:westpacapi.php

示例6:

 function __construct(&$subject, $config)
 {
     $this->pluginConfig['url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=googlewallet&amp;tmpl=component';
     return parent::__construct($subject, $config);
 }
开发者ID:q0821,项目名称:esportshop,代码行数:5,代码来源:googlewallet.php

示例7:

 function __construct(&$subject, $config)
 {
     $httpsHikashop = str_replace('http://', 'https://', HIKASHOP_LIVE);
     $this->pluginConfig['notif_url'][2] = $httpsHikashop . 'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=googlecheckout&amp;tmpl=component';
     return parent::__construct($subject, $config);
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:6,代码来源:googlecheckout.php

示例8:

 function __construct(&$subject, $config)
 {
     parent::__construct($subject, $config);
     $this->config = hikashop_config();
 }
开发者ID:q0821,项目名称:esportshop,代码行数:5,代码来源:userpoints.php


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