14 array(
'oxtitle',
'oxdelivery', 1, 1, 0 ),
15 array(
'oxaddsum',
'oxdelivery', 1, 0, 0 ),
16 array(
'oxaddsumtype',
'oxdelivery', 1, 0, 0 ),
17 array(
'oxid',
'oxdelivery', 0, 0, 1 )
19 'container2' => array(
20 array(
'oxtitle',
'oxdelivery', 1, 1, 0 ),
21 array(
'oxaddsum',
'oxdelivery', 1, 0, 0 ),
22 array(
'oxaddsumtype',
'oxdelivery', 1, 0, 0 ),
23 array(
'oxid',
'oxdel2delset', 0, 0, 1 )
34 $sId = $this->
getConfig()->getRequestParameter(
'oxid' );
35 $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid' );
42 $sQAdd =
" from $sDeliveryViewName where 1 ";
44 $sQAdd =
" from $sDeliveryViewName left join oxdel2delset on oxdel2delset.oxdelid=$sDeliveryViewName.oxid ";
45 $sQAdd .=
"where oxdel2delset.oxdelsetid = ".$oDb->quote( $sId );
48 if ( $sSynchId && $sSynchId != $sId ) {
49 $sQAdd .=
"and $sDeliveryViewName.oxid not in ( select $sDeliveryViewName.oxid from $sDeliveryViewName left join oxdel2delset on oxdel2delset.oxdelid=$sDeliveryViewName.oxid ";
50 $sQAdd .=
"where oxdel2delset.oxdelsetid = ".$oDb->quote( $sSynchId ) .
" ) ";
64 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
69 } elseif ( $aRemoveGroups && is_array( $aRemoveGroups ) ) {
70 $sQ =
"delete from oxdel2delset where oxdel2delset.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aRemoveGroups ) ) .
") ";
86 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
90 if ( $soxId && $soxId !=
"-1" && is_array( $aChosenSets ) ) {
92 foreach ( $aChosenSets as $sChosenSet) {
94 $sID = $oDb->getOne(
"select oxid from oxdel2delset where oxdelid = " . $oDb->quote( $sChosenSet ) .
" and oxdelsetid = ".$oDb->quote( $soxId ),
false, false );
95 if ( !isset( $sID) || !$sID) {
96 $oDel2delset =
oxNew(
'oxbase' );
97 $oDel2delset->init(
'oxdel2delset' );
98 $oDel2delset->oxdel2delset__oxdelid =
new oxField($sChosenSet);
99 $oDel2delset->oxdel2delset__oxdelsetid =
new oxField($soxId);
100 $oDel2delset->save();