15 array(
'oxtitle',
'oxdelivery', 1, 1, 0),
16 array(
'oxaddsum',
'oxdelivery', 1, 0, 0),
17 array(
'oxaddsumtype',
'oxdelivery', 1, 0, 0),
18 array(
'oxid',
'oxdelivery', 0, 0, 1)
20 'container2' => array(
21 array(
'oxtitle',
'oxdelivery', 1, 1, 0),
22 array(
'oxaddsum',
'oxdelivery', 1, 0, 0),
23 array(
'oxaddsumtype',
'oxdelivery', 1, 0, 0),
24 array(
'oxid',
'oxdel2delset', 0, 0, 1)
35 $sId = $this->
getConfig()->getRequestParameter(
'oxid');
36 $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid');
43 $sQAdd =
" from $sDeliveryViewName where 1 ";
45 $sQAdd =
" from $sDeliveryViewName left join oxdel2delset on oxdel2delset.oxdelid=$sDeliveryViewName.oxid ";
46 $sQAdd .=
"where oxdel2delset.oxdelsetid = " . $oDb->quote($sId);
49 if ($sSynchId && $sSynchId != $sId) {
50 $sQAdd .=
"and $sDeliveryViewName.oxid not in ( select $sDeliveryViewName.oxid from $sDeliveryViewName left join oxdel2delset on oxdel2delset.oxdelid=$sDeliveryViewName.oxid ";
51 $sQAdd .=
"where oxdel2delset.oxdelsetid = " . $oDb->quote($sSynchId) .
" ) ";
63 if ($this->
getConfig()->getRequestParameter(
'all')) {
68 } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
69 $sQ =
"delete from oxdel2delset where oxdel2delset.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray($aRemoveGroups)) .
") ";
83 if ($this->
getConfig()->getRequestParameter(
'all')) {
87 if ($soxId && $soxId !=
"-1" && is_array($aChosenSets)) {
89 foreach ($aChosenSets as $sChosenSet) {
91 $sID = $oDb->getOne(
"select oxid from oxdel2delset where oxdelid = " . $oDb->quote($sChosenSet) .
" and oxdelsetid = " . $oDb->quote($soxId),
false,
false);
92 if (!isset($sID) || !$sID) {
93 $oDel2delset =
oxNew(
'oxbase');
94 $oDel2delset->init(
'oxdel2delset');
95 $oDel2delset->oxdel2delset__oxdelid =
new oxField($sChosenSet);
96 $oDel2delset->oxdel2delset__oxdelsetid =
new oxField($soxId);