22         array(
'oxartnum', 
'oxarticles', 1, 0, 0),
 
   23         array(
'oxtitle', 
'oxarticles', 1, 1, 0),
 
   24         array(
'oxean', 
'oxarticles', 1, 0, 0),
 
   25         array(
'oxmpn', 
'oxarticles', 0, 0, 0),
 
   26         array(
'oxprice', 
'oxarticles', 0, 0, 0),
 
   27         array(
'oxstock', 
'oxarticles', 0, 0, 0),
 
   28         array(
'oxid', 
'oxarticles', 0, 0, 1)
 
   30                                  'container2' => array(
 
   31                                      array(
'oxartnum', 
'oxarticles', 1, 0, 0),
 
   32                                      array(
'oxtitle', 
'oxarticles', 1, 1, 0),
 
   33                                      array(
'oxean', 
'oxarticles', 1, 0, 0),
 
   34                                      array(
'oxmpn', 
'oxarticles', 0, 0, 0),
 
   35                                      array(
'oxprice', 
'oxarticles', 0, 0, 0),
 
   36                                      array(
'oxstock', 
'oxarticles', 0, 0, 0),
 
   37                                      array(
'oxid', 
'oxaccessoire2article', 0, 0, 1)
 
   58             $sQAdd = 
" from {$sArticleTable} where 1 ";
 
   59             $sQAdd .= 
$myConfig->getConfigParam(
'blVariantsSelection') ? 
'' : 
" and {$sArticleTable}.oxparentid = '' ";
 
   62             if ($sSynchSelId && $sSelId != $sSynchSelId) {
 
   63                 $blVariantsSelectionParameter = 
$myConfig->getConfigParam(
'blVariantsSelection');
 
   64                 $sSqlIfTrue = 
" ( {$sArticleTable}.oxid=$sView.oxobjectid " .
 
   65                               "or {$sArticleTable}.oxparentid=$sView.oxobjectid )";
 
   66                 $sSqlIfFals = 
" {$sArticleTable}.oxid=$sView.oxobjectid ";
 
   67                 $sVariantSelectionSql = $blVariantsSelectionParameter ? $sSqlIfTrue : $sSqlIfFals;
 
   69                 $sQAdd = 
" from $sView left join {$sArticleTable} on {$sVariantSelectionSql}" .
 
   70                          " where $sView.oxcatnid = " . $oDb->quote($sSelId) . 
" ";
 
   72                 $sQAdd = 
" from oxaccessoire2article left join {$sArticleTable} " .
 
   73                          "on oxaccessoire2article.oxobjectid={$sArticleTable}.oxid " .
 
   74                          " where oxaccessoire2article.oxarticlenid = " . $oDb->quote($sSelId) . 
" ";
 
   78         if ($sSynchSelId && $sSynchSelId != $sSelId) {
 
   80             $sSubSelect .= 
" select oxaccessoire2article.oxobjectid from oxaccessoire2article ";
 
   81             $sSubSelect .= 
" where oxaccessoire2article.oxarticlenid = " . $oDb->quote($sSynchSelId) . 
" ";
 
   82             $sQAdd .= 
" and {$sArticleTable}.oxid not in ( $sSubSelect ) ";
 
   86         $sId = ($sSynchSelId) ? $sSynchSelId : $sSelId;
 
   87         $sQAdd .= 
" and {$sArticleTable}.oxid != " . $oDb->quote($sId) . 
" ";
 
   98         $aChosenArt = $this->
_getActionIds(
'oxaccessoire2article.oxid');
 
  105         } elseif (is_array($aChosenArt)) {
 
  107             $sQ = 
"delete from oxaccessoire2article where oxaccessoire2article.oxid in ({$sChosenArticles}) ";
 
  119         $oArticle = 
oxNew(
"oxarticle");
 
  126             $aChosenArt = $this->
_getAll(parent::_addFilter(
"select $sArtTable.oxid " . $this->
_getQuery()));
 
  129         if ($oArticle->load($soxId) && $soxId && $soxId != 
"-1" && is_array($aChosenArt)) {
 
  130             foreach ($aChosenArt as $sChosenArt) {
 
  131                 $oNewGroup = 
oxNew(
"oxbase");
 
  132                 $oNewGroup->init(
"oxaccessoire2article");
 
  133                 $oNewGroup->oxaccessoire2article__oxobjectid = 
new oxField($sChosenArt);
 
  134                 $oNewGroup->oxaccessoire2article__oxarticlenid = 
new oxField($oArticle->oxarticles__oxid->value);
 
  135                 $oNewGroup->oxaccessoire2article__oxsort = 
new oxField(0);