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 ),
34 $sGroupId = $this->
getConfig()->getRequestParameter(
'oxid' );
35 $sSynchGroupId = $this->
getConfig()->getRequestParameter(
'synchoxid' );
40 $sQAdd =
" from $sGroupTable ";
42 $sQAdd =
" from $sGroupTable, oxobject2group where ";
43 $sQAdd .=
" oxobject2group.oxobjectid = ".$oDb->quote( $sGroupId ).
" and oxobject2group.oxgroupsid = $sGroupTable.oxid ";
46 if ( !$sSynchGroupId )
47 $sSynchGroupId = $this->
getConfig()->getRequestParameter(
'oxajax_synchfid');
48 if ( $sSynchGroupId && $sSynchGroupId != $sGroupId) {
53 $sQAdd .=
" $sGroupTable.oxid not in ( select $sGroupTable.oxid from $sGroupTable, oxobject2group where ";
54 $sQAdd .=
" oxobject2group.oxobjectid = ".$oDb->quote( $sSynchGroupId ).
" and oxobject2group.oxgroupsid = $sGroupTable.oxid ) ";
67 $aRemoveGroups = $this->
_getActionIds(
'oxobject2group.oxid' );
68 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
73 } elseif ( $aRemoveGroups && is_array( $aRemoveGroups ) ) {
74 $sQ =
"delete from oxobject2group where oxobject2group.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aRemoveGroups ) ) .
") ";
87 $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid');
89 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
93 if ( $soxId && $soxId !=
"-1" && is_array( $aAddGroups ) ) {
94 foreach ($aAddGroups as $sAddgroup) {
95 $oNewGroup =
oxNew(
"oxobject2group" );
96 $oNewGroup->oxobject2group__oxobjectid =
new oxField($soxId);
97 $oNewGroup->oxobject2group__oxgroupsid =
new oxField($sAddgroup);