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',
'oxobject2action', 0, 0, 1 ),
41 $sQAdd =
" from $sGroupTable where 1 ";
43 $sQAdd .=
" from oxobject2action, $sGroupTable where $sGroupTable.oxid=oxobject2action.oxobjectid ";
44 $sQAdd .=
" and oxobject2action.oxactionid = ".$oDb->quote( $sId ).
" and oxobject2action.oxclass = 'oxgroups' ";
47 if ( $sSynchId && $sSynchId != $sId) {
48 $sQAdd .=
" and $sGroupTable.oxid not in ( select $sGroupTable.oxid from oxobject2action, $sGroupTable where $sGroupTable.oxid=oxobject2action.oxobjectid ";
49 $sQAdd .=
" and oxobject2action.oxactionid = ".$oDb->quote( $sSynchId ).
" and oxobject2action.oxclass = 'oxgroups' ) ";
62 $aRemoveGroups = $this->
_getActionIds(
'oxobject2action.oxid' );
66 } elseif ( $aRemoveGroups && is_array( $aRemoveGroups ) ) {
67 $sQ =
"delete from oxobject2action where oxobject2action.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aRemoveGroups ) ) .
") ";
86 if ( $soxId && $soxId !=
"-1" && is_array( $aChosenGroup ) ) {
87 foreach ( $aChosenGroup as $sChosenGroup) {
88 $oObject2Promotion =
oxNew(
"oxbase" );
89 $oObject2Promotion->init(
'oxobject2action' );
90 $oObject2Promotion->oxobject2action__oxactionid =
new oxField( $soxId );
91 $oObject2Promotion->oxobject2action__oxobjectid =
new oxField( $sChosenGroup );
92 $oObject2Promotion->oxobject2action__oxclass =
new oxField(
"oxgroups" );
93 $oObject2Promotion->save();