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',
'oxobject2delivery', 0, 0, 1 ),
33 $sId = $this->
getConfig()->getRequestParameter(
'oxid' );
34 $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid' );
40 $sQAdd =
" from $sgroupTable where 1 ";
42 $sQAdd =
" from oxobject2delivery, $sgroupTable where oxobject2delivery.oxdeliveryid = ".$oDb->quote( $sId );
43 $sQAdd .=
" and oxobject2delivery.oxobjectid = $sgroupTable.oxid and oxobject2delivery.oxtype = 'oxdelsetg' ";
46 if ( $sSynchId && $sSynchId != $sId ) {
47 $sQAdd .=
" and $sgroupTable.oxid not in ( select $sgroupTable.oxid from oxobject2delivery, $sgroupTable where oxobject2delivery.oxdeliveryid = ".$oDb->quote( $sSynchId );
48 $sQAdd .=
" and oxobject2delivery.oxobjectid = $sgroupTable.oxid and oxobject2delivery.oxtype = 'oxdelsetg' ) ";
61 $aRemoveGroups = $this->
_getActionIds(
'oxobject2delivery.oxid' );
62 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
67 } elseif ( $aRemoveGroups && is_array( $aRemoveGroups ) ) {
68 $sQ =
"delete from oxobject2delivery where oxobject2delivery.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aRemoveGroups ) ) .
") ";
81 $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid' );
84 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
88 if ( $soxId && $soxId !=
"-1" && is_array( $aChosenCat ) ) {
89 foreach ( $aChosenCat as $sChosenCat) {
90 $oObject2Delivery =
oxNew(
'oxbase' );
91 $oObject2Delivery->init(
'oxobject2delivery' );
92 $oObject2Delivery->oxobject2delivery__oxdeliveryid =
new oxField($soxId);
93 $oObject2Delivery->oxobject2delivery__oxobjectid =
new oxField($sChosenCat);
94 $oObject2Delivery->oxobject2delivery__oxtype =
new oxField(
"oxdelsetg");
95 $oObject2Delivery->save();