15 array(
'oxtitle',
'oxgroups', 1, 0, 0),
16 array(
'oxid',
'oxgroups', 0, 0, 0),
17 array(
'oxid',
'oxgroups', 0, 0, 1),
19 'container2' => array(
20 array(
'oxtitle',
'oxgroups', 1, 0, 0),
21 array(
'oxid',
'oxgroups', 0, 0, 0),
22 array(
'oxid',
'oxobject2delivery', 0, 0, 1),
34 $sId = $this->
getConfig()->getRequestParameter(
'oxid');
35 $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid');
41 $sQAdd =
" from $sgroupTable where 1 ";
43 $sQAdd =
" from oxobject2delivery, {$sgroupTable} " .
44 "where oxobject2delivery.oxdeliveryid = " . $oDb->quote($sId) .
45 " and oxobject2delivery.oxobjectid = {$sgroupTable}.oxid " .
46 "and oxobject2delivery.oxtype = 'oxdelsetg' ";
49 if ($sSynchId && $sSynchId != $sId) {
50 $sQAdd .=
" and {$sgroupTable}.oxid not in ( select {$sgroupTable}.oxid " .
51 "from oxobject2delivery, {$sgroupTable} " .
52 "where oxobject2delivery.oxdeliveryid = " . $oDb->quote($sSynchId) .
53 " and oxobject2delivery.oxobjectid = $sgroupTable.oxid " .
54 "and oxobject2delivery.oxtype = 'oxdelsetg' ) ";
65 $aRemoveGroups = $this->
_getActionIds(
'oxobject2delivery.oxid');
66 if ($this->
getConfig()->getRequestParameter(
'all')) {
71 } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
73 $sQ =
"delete from oxobject2delivery where oxobject2delivery.oxid in (" . $sRemoveGroups .
") ";
84 $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid');
87 if ($this->
getConfig()->getRequestParameter(
'all')) {
91 if ($soxId && $soxId !=
"-1" && is_array($aChosenCat)) {
92 foreach ($aChosenCat as $sChosenCat) {
93 $oObject2Delivery =
oxNew(
'oxbase');
94 $oObject2Delivery->init(
'oxobject2delivery');
95 $oObject2Delivery->oxobject2delivery__oxdeliveryid =
new oxField($soxId);
96 $oObject2Delivery->oxobject2delivery__oxobjectid =
new oxField($sChosenCat);
97 $oObject2Delivery->oxobject2delivery__oxtype =
new oxField(
"oxdelsetg");
98 $oObject2Delivery->save();