Пример #1
0
 /**
  * Defines JS files for widget
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = 'modules/CDev/Paypal/items_list/payment/methods/controller.js';
     $api = \XLite\Module\CDev\Paypal\Main::getRESTAPIInstance();
     if ($api->isInContextSignUpAvailable()) {
         $list[] = 'modules/CDev/Paypal/settings/signup.js';
     }
     return $list;
 }
Пример #2
0
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $cnd = parent::getSearchCondition();
     $cnd->{\XLite\Model\Repo\Payment\Method::P_TYPE} = array(\XLite\Model\Payment\Method::TYPE_ALLINONE, \XLite\Model\Payment\Method::TYPE_CC_GATEWAY);
     return $cnd;
 }
Пример #3
0
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $cnd = parent::getSearchCondition();
     $cnd->{\XLite\Model\Repo\Payment\Method::P_ONLY_MODULE_OFFLINE} = true;
     return $cnd;
 }
Пример #4
0
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $cnd = parent::getSearchCondition();
     $cnd->{\XLite\Model\Repo\Payment\Method::P_TYPE} = \XLite\Model\Payment\Method::TYPE_ALTERNATIVE;
     return $cnd;
 }