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 ),
40 $sQAdd =
" from $sGroupTable where 1 ";
42 $sQAdd =
" from $sGroupTable left join oxobject2group on oxobject2group.oxgroupsid=$sGroupTable.oxid ";
43 $sQAdd .=
" where oxobject2group.oxobjectid = ".$oDb->quote( $sDeldId );
46 if ( $sSynchDelId && $sSynchDelId != $sDeldId) {
47 $sQAdd .=
" and $sGroupTable.oxid not in ( select $sGroupTable.oxid from $sGroupTable left join oxobject2group on oxobject2group.oxgroupsid=$sGroupTable.oxid ";
48 $sQAdd .=
" where oxobject2group.oxobjectid = ".$oDb->quote( $sSynchDelId ).
" ) ";
61 $aRemoveGroups = $this->
_getActionIds(
'oxobject2group.oxid' );
67 } elseif ( $aRemoveGroups && is_array( $aRemoveGroups ) ) {
68 $sQ =
"delete from oxobject2group where oxobject2group.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aRemoveGroups ) ) .
") ";
87 if ( $soxId && $soxId !=
"-1" && is_array( $aAddGroups ) ) {
88 foreach ($aAddGroups as $sAddgroup) {
89 $oNewGroup =
oxNew(
"oxobject2group" );
90 $oNewGroup->oxobject2group__oxobjectid =
new oxField($soxId);
91 $oNewGroup->oxobject2group__oxgroupsid =
new oxField($sAddgroup);