24 unset($this->_aViewData[
"sumtype"][2]);
27 if ($soxId !=
"-1" && isset($soxId)) {
29 $oPayment =
oxNew(
"oxpayment");
30 $oPayment->loadInLang($this->_iEditLang, $soxId);
32 $oOtherLang = $oPayment->getAvailableInLangs();
33 if (!isset($oOtherLang[$this->_iEditLang])) {
35 $oPayment->loadInLang(key($oOtherLang), $soxId);
37 $this->_aViewData[
"edit"] = $oPayment;
42 $this->_aViewData[
"posslang"] =
$aLang;
45 foreach ($oOtherLang as $id => $language) {
46 $oLang =
new stdClass();
47 $oLang->sLangDesc = $language;
49 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
54 $oPaymentCountryAjax =
oxNew(
'payment_country_ajax');
55 $this->_aViewData[
'oxajax'] = $oPaymentCountryAjax->getColumns();
57 return "popups/payment_country.tpl";
60 return "payment_country.tpl";
70 if (isset($sOxId) && $sOxId !=
"-1" && is_array($aChosenCntr)) {
71 foreach ($aChosenCntr as $sChosenCntr) {
72 $oObject2Payment =
oxNew(
'oxbase');
73 $oObject2Payment->init(
'oxobject2payment');
74 $oObject2Payment->oxobject2payment__oxpaymentid =
new oxField($sOxId);
75 $oObject2Payment->oxobject2payment__oxobjectid =
new oxField($sChosenCntr);
76 $oObject2Payment->oxobject2payment__oxtype =
new oxField(
"oxcountry");
77 $oObject2Payment->save();
89 if (isset($sOxId) && $sOxId !=
"-1" && is_array($aChosenCntr)) {
90 foreach ($aChosenCntr as $sChosenCntr) {
91 $oObject2Payment =
oxNew(
'oxbase');
92 $oObject2Payment->init(
'oxobject2payment');
93 $oObject2Payment->delete($sChosenCntr);