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',
'oxobject2group', 0, 0, 1),
37 $sVoucherId = $oConfig->getRequestParameter(
'oxid');
38 $sSynchVoucherId = $oConfig->getRequestParameter(
'synchoxid');
42 $sQAdd =
" from $sGroupTable where 1 ";
44 $sQAdd =
" from $sGroupTable, oxobject2group where ";
45 $sQAdd .=
" oxobject2group.oxobjectid = " . $oDb->quote($sVoucherId) .
" and $sGroupTable.oxid = oxobject2group.oxgroupsid ";
48 if ($sSynchVoucherId && $sSynchVoucherId != $sVoucherId) {
49 $sQAdd .=
" and $sGroupTable.oxid not in ( select $sGroupTable.oxid from $sGroupTable, oxobject2group where ";
50 $sQAdd .=
" oxobject2group.oxobjectid = " . $oDb->quote($sSynchVoucherId) .
" and $sGroupTable.oxid = oxobject2group.oxgroupsid ) ";
67 } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
68 $sQ =
"delete from oxobject2group where oxobject2group.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray($aRemoveGroups)) .
") ";
80 $soxId = $oConfig->getRequestParameter(
'synchoxid');
82 if ($oConfig->getRequestParameter(
'all')) {
86 if ($soxId && $soxId !=
"-1" && is_array($aChosenCat)) {
87 foreach ($aChosenCat as $sChosenCat) {
88 $oNewGroup =
oxNew(
"oxobject2group");
89 $oNewGroup->oxobject2group__oxobjectid =
new oxField($soxId);
90 $oNewGroup->oxobject2group__oxgroupsid =
new oxField($sChosenCat);