15         array(
'oxartnum', 
'oxarticles', 1, 0, 0),
 
   16         array(
'oxtitle', 
'oxarticles', 1, 1, 0),
 
   17         array(
'oxean', 
'oxarticles', 1, 0, 0),
 
   18         array(
'oxmpn', 
'oxarticles', 0, 0, 0),
 
   19         array(
'oxprice', 
'oxarticles', 0, 0, 0),
 
   20         array(
'oxstock', 
'oxarticles', 0, 0, 0),
 
   21         array(
'oxid', 
'oxarticles', 0, 0, 1)
 
   23                                  'container2' => array(
 
   24                                      array(
'oxartnum', 
'oxarticles', 1, 0, 0),
 
   25                                      array(
'oxtitle', 
'oxarticles', 1, 1, 0),
 
   26                                      array(
'oxean', 
'oxarticles', 1, 0, 0),
 
   27                                      array(
'oxmpn', 
'oxarticles', 0, 0, 0),
 
   28                                      array(
'oxprice', 
'oxarticles', 0, 0, 0),
 
   29                                      array(
'oxstock', 
'oxarticles', 0, 0, 0),
 
   30                                      array(
'oxid', 
'oxobject2delivery', 0, 0, 1)
 
   56         $sDelId = $this->
getConfig()->getRequestParameter(
'oxid');
 
   57         $sSynchDelId = $this->
getConfig()->getRequestParameter(
'synchoxid');
 
   62             $sQAdd = 
" from $sArtTable where 1 ";
 
   63             $sQAdd .= 
$myConfig->getConfigParam(
'blVariantsSelection') ? 
'' : 
"and $sArtTable.oxparentid = '' ";
 
   66             if ($sSynchDelId && $sDelId != $sSynchDelId) {
 
   67                 $sQAdd = 
" from $sO2CView left join $sArtTable on ";
 
   68                 $sQAdd .= 
$myConfig->getConfigParam(
'blVariantsSelection') ? 
" ( $sArtTable.oxid=$sO2CView.oxobjectid or $sArtTable.oxparentid=$sO2CView.oxobjectid)" : 
" $sArtTable.oxid=$sO2CView.oxobjectid ";
 
   69                 $sQAdd .= 
"where $sO2CView.oxcatnid = " . $oDb->quote($sDelId);
 
   71                 $sQAdd = 
' from oxobject2delivery left join ' . $sArtTable . 
' on ' . $sArtTable . 
'.oxid=oxobject2delivery.oxobjectid ';
 
   72                 $sQAdd .= 
'where oxobject2delivery.oxdeliveryid = ' . $oDb->quote($sDelId) . 
' and oxobject2delivery.oxtype = "oxarticles" ';
 
   76         if ($sSynchDelId && $sSynchDelId != $sDelId) {
 
   77             $sQAdd .= 
'and ' . $sArtTable . 
'.oxid not in ( ';
 
   78             $sQAdd .= 
'select oxobject2delivery.oxobjectid from oxobject2delivery ';
 
   79             $sQAdd .= 
'where oxobject2delivery.oxdeliveryid = ' . $oDb->quote($sSynchDelId) . 
' and oxobject2delivery.oxtype = "oxarticles" ) ';
 
  107         $aChosenArt = $this->
_getActionIds(
'oxobject2delivery.oxid');
 
  109         if ($this->
getConfig()->getRequestParameter(
'all')) {
 
  114         } elseif (is_array($aChosenArt)) {
 
  115             $sQ = 
"delete from oxobject2delivery where oxobject2delivery.oxid in (" . implode(
", ", 
oxDb::getInstance()->quoteArray($aChosenArt)) . 
") ";
 
  126         $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid');
 
  129         if ($this->
getConfig()->getRequestParameter(
'all')) {
 
  134         if ($soxId && $soxId != 
"-1" && is_array($aChosenArt)) {
 
  135             foreach ($aChosenArt as $sChosenArt) {
 
  136                 $oObject2Delivery = 
oxNew(
'oxbase');
 
  137                 $oObject2Delivery->init(
'oxobject2delivery');
 
  138                 $oObject2Delivery->oxobject2delivery__oxdeliveryid = 
new oxField($soxId);
 
  139                 $oObject2Delivery->oxobject2delivery__oxobjectid = 
new oxField($sChosenArt);
 
  140                 $oObject2Delivery->oxobject2delivery__oxtype = 
new oxField(
"oxarticles");
 
  141                 $oObject2Delivery->save();