14 array(
'oxtitle',
'oxgroups', 1, 0, 0 ),
15 array(
'oxid',
'oxgroups', 0, 0, 0 ),
16 array(
'oxid',
'oxgroups', 0, 0, 1 ),
18 'container2' => array(
19 array(
'oxtitle',
'oxgroups', 1, 0, 0 ),
20 array(
'oxid',
'oxgroups', 0, 0, 0 ),
21 array(
'oxid',
'oxobject2group', 0, 0, 1 ),
36 $sVoucherId = $oConfig->getRequestParameter(
'oxid' );
37 $sSynchVoucherId = $oConfig->getRequestParameter(
'synchoxid' );
41 $sQAdd =
" from $sGroupTable where 1 ";
43 $sQAdd =
" from $sGroupTable, oxobject2group where ";
44 $sQAdd .=
" oxobject2group.oxobjectid = ".$oDb->quote( $sVoucherId ).
" and $sGroupTable.oxid = oxobject2group.oxgroupsid ";
47 if ( $sSynchVoucherId && $sSynchVoucherId != $sVoucherId) {
48 $sQAdd .=
" and $sGroupTable.oxid not in ( select $sGroupTable.oxid from $sGroupTable, oxobject2group where ";
49 $sQAdd .=
" oxobject2group.oxobjectid = ".$oDb->quote( $sSynchVoucherId ).
" and $sGroupTable.oxid = oxobject2group.oxgroupsid ) ";
62 $aRemoveGroups = $this->
_getActionIds(
'oxobject2group.oxid' );
68 } elseif ( $aRemoveGroups && is_array( $aRemoveGroups ) ) {
69 $sQ =
"delete from oxobject2group where oxobject2group.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aRemoveGroups ) ) .
") ";
83 $soxId = $oConfig->getRequestParameter(
'synchoxid');
85 if ( $oConfig->getRequestParameter(
'all' ) ) {
89 if ( $soxId && $soxId !=
"-1" && is_array( $aChosenCat ) ) {
90 foreach ( $aChosenCat as $sChosenCat) {
91 $oNewGroup =
oxNew(
"oxobject2group" );
92 $oNewGroup->oxobject2group__oxobjectid =
new oxField($soxId);
93 $oNewGroup->oxobject2group__oxgroupsid =
new oxField($sChosenCat);