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',
'oxobject2action', 0, 0, 1),
42 $sQAdd =
" from {$sGroupTable} where 1 ";
44 $sQAdd .=
" from oxobject2action, {$sGroupTable} where {$sGroupTable}.oxid=oxobject2action.oxobjectid " .
45 " and oxobject2action.oxactionid = " . $oDb->quote($sId) .
46 " and oxobject2action.oxclass = 'oxgroups' ";
49 if ($sSynchId && $sSynchId != $sId) {
50 $sQAdd .=
" and {$sGroupTable}.oxid not in ( select {$sGroupTable}.oxid " .
51 "from oxobject2action, {$sGroupTable} where $sGroupTable.oxid=oxobject2action.oxobjectid " .
52 " and oxobject2action.oxactionid = " . $oDb->quote($sSynchId) .
53 " and oxobject2action.oxclass = 'oxgroups' ) ";
64 $aRemoveGroups = $this->
_getActionIds(
'oxobject2action.oxid');
68 } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
70 $sQ =
"delete from oxobject2action where oxobject2action.oxid in (" . $sRemoveGroups .
") ";
87 if ($soxId && $soxId !=
"-1" && is_array($aChosenGroup)) {
88 foreach ($aChosenGroup as $sChosenGroup) {
89 $oObject2Promotion =
oxNew(
"oxbase");
90 $oObject2Promotion->init(
'oxobject2action');
91 $oObject2Promotion->oxobject2action__oxactionid =
new oxField($soxId);
92 $oObject2Promotion->oxobject2action__oxobjectid =
new oxField($sChosenGroup);
93 $oObject2Promotion->oxobject2action__oxclass =
new oxField(
"oxgroups");
94 $oObject2Promotion->save();