27 unset( $this->_aViewData[
"sumtype"][2]);
30 $oGroups =
oxNew(
"oxlist" );
31 $oGroups->init(
"oxgroups");
32 $oGroups->selectString(
"select * from ".getViewName(
"oxgroups", $this->_iEditLang ) );
35 if ( $soxId !=
"-1" && isset( $soxId)) {
37 $oPayment =
oxNew(
"oxpayment" );
38 $oPayment->loadInLang( $this->_iEditLang, $soxId );
40 $oOtherLang = $oPayment->getAvailableInLangs();
41 if (!isset($oOtherLang[$this->_iEditLang])) {
43 $oPayment->loadInLang( key($oOtherLang), $soxId );
45 $this->_aViewData[
"edit"] = $oPayment;
50 $this->_aViewData[
"posslang"] =
$aLang;
52 foreach ( $oOtherLang as $id => $language) {
53 $oLang =
new stdClass();
54 $oLang->sLangDesc = $language;
56 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
60 $this->_aViewData[
'aFieldNames'] =
oxRegistry::getUtils()->assignValuesFromText( $oPayment->oxpayments__oxvaldesc->value );
64 $oPaymentMainAjax =
oxNew(
'payment_main_ajax' );
65 $this->_aViewData[
'oxajax'] = $oPaymentMainAjax->getColumns();
67 return "popups/payment_main.tpl";
70 $this->_aViewData[
"editor"] = $this->
_generateTextEditor(
"100%", 300, $oPayment,
"oxpayments__oxlongdesc");
72 return "payment_main.tpl";
88 if ( !isset( $aParams[
'oxpayments__oxactive']))
89 $aParams[
'oxpayments__oxactive'] = 0;
90 if ( !isset( $aParams[
'oxpayments__oxchecked']))
91 $aParams[
'oxpayments__oxchecked'] = 0;
93 $oPayment =
oxNew(
"oxpayment" );
96 $oPayment->loadInLang( $this->_iEditLang, $soxId );
98 $aParams[
'oxpayments__oxid'] = null;
101 $oPayment->setLanguage(0);
102 $oPayment->assign( $aParams);
107 if ( empty($aRules) ) {
108 $this->_aViewData[
"noticeoxaddsumrules"] = 1;
110 $oPayment->oxpayments__oxaddsumrules =
new oxField( array_sum( $aRules ) );
114 if ( !is_array( $this->_aFieldArray))
115 $this->_aFieldArray =
oxRegistry::getUtils()->assignValuesFromText( $oPayment->oxpayments__oxvaldesc->value );
118 foreach ( $this->_aFieldArray as $oField)
119 $sValdesc .= $oField->name .
"__@@";
122 $oPayment->setLanguage($this->_iEditLang);
142 $aParams[
'oxpayments__oxshopid'] = $sShopID;
143 $oObj =
oxNew(
"oxpayment" );
146 $oObj->loadInLang( $this->_iEditLang, $soxId );
148 $aParams[
'oxpayments__oxid'] = null;
151 $oObj->setLanguage(0);
152 $oObj->assign( $aParams);
170 $oPayment =
oxNew(
"oxpayment" );
171 if ( $oPayment->loadInLang( $this->_iEditLang, $this->getEditObjectId() ) ) {
174 $this->_aFieldArray =
oxRegistry::getUtils()->assignValuesFromText( $oPayment->oxpayments__oxvaldesc->value );
176 if ( is_array( $aDelFields ) && count( $aDelFields ) ) {
177 foreach ( $aDelFields as $sDelField ) {
178 foreach ( $this->_aFieldArray as $sKey => $oField ) {
179 if ( $oField->name == $sDelField ) {
180 unset( $this->_aFieldArray[$sKey] );
198 $oPayment =
oxNew(
"oxpayment" );
199 if ( $oPayment->loadInLang( $this->_iEditLang, $this->getEditObjectId() ) ) {
201 $this->_aFieldArray =
oxRegistry::getUtils()->assignValuesFromText( $oPayment->oxpayments__oxvaldesc->value );
203 $oField =
new stdClass();
206 $this->_aFieldArray[] = $oField;