15         array(
'oxtitle', 
'oxcountry', 1, 1, 0),
 
   16         array(
'oxisoalpha2', 
'oxcountry', 1, 0, 0),
 
   17         array(
'oxisoalpha3', 
'oxcountry', 0, 0, 0),
 
   18         array(
'oxunnum3', 
'oxcountry', 0, 0, 0),
 
   19         array(
'oxid', 
'oxcountry', 0, 0, 1)
 
   21                                  'container2' => array(
 
   22                                      array(
'oxtitle', 
'oxcountry', 1, 1, 0),
 
   23                                      array(
'oxisoalpha2', 
'oxcountry', 1, 0, 0),
 
   24                                      array(
'oxisoalpha3', 
'oxcountry', 0, 0, 0),
 
   25                                      array(
'oxunnum3', 
'oxcountry', 0, 0, 0),
 
   26                                      array(
'oxid', 
'oxobject2delivery', 0, 0, 1)
 
   38         $sId = $this->
getConfig()->getRequestParameter(
'oxid');
 
   39         $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid');
 
   45             $sQAdd = 
" from {$sCountryTable} where {$sCountryTable}.oxactive = '1' ";
 
   47             $sQAdd = 
" from oxobject2delivery, {$sCountryTable} " .
 
   48                      "where oxobject2delivery.oxdeliveryid = " . $oDb->quote($sId) .
 
   49                      " and oxobject2delivery.oxobjectid = {$sCountryTable}.oxid " .
 
   50                      "and oxobject2delivery.oxtype = 'oxdelset' ";
 
   53         if ($sSynchId && $sSynchId != $sId) {
 
   54             $sQAdd .= 
"and {$sCountryTable}.oxid not in ( select {$sCountryTable}.oxid " .
 
   55                       "from oxobject2delivery, {$sCountryTable} " .
 
   56                       "where oxobject2delivery.oxdeliveryid = " . $oDb->quote($sSynchId) .
 
   57                       "and oxobject2delivery.oxobjectid = {$sCountryTable}.oxid " .
 
   58                       "and oxobject2delivery.oxtype = 'oxdelset' ) ";
 
   69         $aChosenCntr = $this->
_getActionIds(
'oxobject2delivery.oxid');
 
   71         if ($this->
getConfig()->getRequestParameter(
'all')) {
 
   76         } elseif (is_array($aChosenCntr)) {
 
   78             $sQ = 
"delete from oxobject2delivery where oxobject2delivery.oxid in (" . $sChosenCountries . 
") ";
 
   89         $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid');
 
   92         if ($this->
getConfig()->getRequestParameter(
'all')) {
 
   97         if ($soxId && $soxId != 
"-1" && is_array($aChosenCntr)) {
 
   98             foreach ($aChosenCntr as $sChosenCntr) {
 
   99                 $oObject2Delivery = 
oxNew(
'oxbase');
 
  100                 $oObject2Delivery->init(
'oxobject2delivery');
 
  101                 $oObject2Delivery->oxobject2delivery__oxdeliveryid = 
new oxField($soxId);
 
  102                 $oObject2Delivery->oxobject2delivery__oxobjectid = 
new oxField($sChosenCntr);
 
  103                 $oObject2Delivery->oxobject2delivery__oxtype = 
new oxField(
"oxdelset");
 
  104                 $oObject2Delivery->save();