15         array(
'oxtitle', 
'oxgroups', 1, 0, 0),
 
   16         array(
'oxid', 
'oxgroups', 0, 0, 0),
 
   17         array(
'oxid', 
'oxgroups', 0, 0, 1),
 
   19                                  'container2' => array(
 
   20                                      array(
'oxtitle', 
'oxgroups', 1, 0, 0),
 
   21                                      array(
'oxid', 
'oxgroups', 0, 0, 0),
 
   22                                      array(
'oxid', 
'oxobject2discount', 0, 0, 1),
 
   37         $sId = $oConfig->getRequestParameter(
'oxid');
 
   38         $sSynchId = $oConfig->getRequestParameter(
'synchoxid');
 
   42             $sQAdd = 
" from {$sGroupTable} where 1 ";
 
   44             $sQAdd .= 
" from oxobject2discount, {$sGroupTable} where {$sGroupTable}.oxid=oxobject2discount.oxobjectid ";
 
   45             $sQAdd .= 
" and oxobject2discount.oxdiscountid = " . $oDb->quote($sId) .
 
   46                       " and oxobject2discount.oxtype = 'oxgroups' ";
 
   49         if ($sSynchId && $sSynchId != $sId) {
 
   50             $sQAdd .= 
" and {$sGroupTable}.oxid not in ( select {$sGroupTable}.oxid " .
 
   51                       "from oxobject2discount, {$sGroupTable} where {$sGroupTable}.oxid=oxobject2discount.oxobjectid " .
 
   52                       " and oxobject2discount.oxdiscountid = " . $oDb->quote($sSynchId) .
 
   53                       " and oxobject2discount.oxtype = 'oxgroups' ) ";
 
   66         $aRemoveGroups = $this->
_getActionIds(
'oxobject2discount.oxid');
 
   67         if ($oConfig->getRequestParameter(
'all')) {
 
   72         } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
 
   74             $sQ = 
"delete from oxobject2discount where oxobject2discount.oxid in (" . $sRemoveGroups . 
") ";
 
   86         $soxId = $oConfig->getRequestParameter(
'synchoxid');
 
   89         if ($oConfig->getRequestParameter(
'all')) {
 
   93         if ($soxId && $soxId != 
"-1" && is_array($aChosenCat)) {
 
   94             foreach ($aChosenCat as $sChosenCat) {
 
   95                 $oObject2Discount = 
oxNew(
"oxbase");
 
   96                 $oObject2Discount->init(
'oxobject2discount');
 
   97                 $oObject2Discount->oxobject2discount__oxdiscountid = 
new oxField($soxId);
 
   98                 $oObject2Discount->oxobject2discount__oxobjectid = 
new oxField($sChosenCat);
 
   99                 $oObject2Discount->oxobject2discount__oxtype = 
new oxField(
"oxgroups");
 
  100                 $oObject2Discount->save();