21                                         array( 
'oxartnum', 
'oxarticles', 1, 0, 0 ),
 
   22                                         array( 
'oxtitle',  
'oxarticles', 1, 1, 0 ),
 
   23                                         array( 
'oxean',    
'oxarticles', 1, 0, 0 ),
 
   24                                         array( 
'oxmpn',    
'oxarticles', 0, 0, 0 ),
 
   25                                         array( 
'oxprice',  
'oxarticles', 0, 0, 0 ),
 
   26                                         array( 
'oxstock',  
'oxarticles', 0, 0, 0 ),
 
   27                                         array( 
'oxid',     
'oxarticles', 0, 0, 1 )
 
   29                                     'container2' => array(
 
   30                                         array( 
'oxartnum', 
'oxarticles', 1, 0, 0 ),
 
   31                                         array( 
'oxtitle',  
'oxarticles', 1, 1, 0 ),
 
   32                                         array( 
'oxean',    
'oxarticles', 1, 0, 0 ),
 
   33                                         array( 
'oxmpn',    
'oxarticles', 0, 0, 0 ),
 
   34                                         array( 
'oxprice',  
'oxarticles', 0, 0, 0 ),
 
   35                                         array( 
'oxstock',  
'oxarticles', 0, 0, 0 ),
 
   36                                         array( 
'oxid',     
'oxobject2attribute', 0, 0, 1 )
 
   51         $sO2CategoryView  = $this->
_getViewName(
'oxobject2category');
 
   52         $sO2AttributeView = $this->
_getViewName(
'oxobject2attribute');
 
   60             $sQAdd  = 
" from $sArticleTable where 1 ";
 
   61             $sQAdd .= 
$myConfig->getConfigParam( 
'blVariantsSelection' )?
'':
" and $sArticleTable.oxparentid = '' ";
 
   62         } elseif ( $sSynchDelId && $sDelId != $sSynchDelId ) {
 
   64             $sQAdd  = 
" from $sO2CategoryView as oxobject2category left join $sArticleTable on ";
 
   65             $sQAdd .= 
$myConfig->getConfigParam( 
'blVariantsSelection' )?
" ( $sArticleTable.oxid=oxobject2category.oxobjectid or $sArticleTable.oxparentid=oxobject2category.oxobjectid)":
" $sArticleTable.oxid=oxobject2category.oxobjectid ";
 
   66             $sQAdd .= 
" where oxobject2category.oxcatnid = " . $oDb->quote( $sDelId ) . 
" ";
 
   68             $sQAdd  = 
" from $sO2AttributeView left join $sArticleTable on $sArticleTable.oxid=$sO2AttributeView.oxobjectid ";
 
   69             $sQAdd .= 
" where $sO2AttributeView.oxattrid = " . $oDb->quote( $sDelId ) . 
" and $sArticleTable.oxid is not null ";
 
   72         if ( $sSynchDelId && $sSynchDelId != $sDelId ) {
 
   73             $sQAdd .= 
" and $sArticleTable.oxid not in ( select $sO2AttributeView.oxobjectid from $sO2AttributeView where $sO2AttributeView.oxattrid = " . $oDb->quote( $sSynchDelId ) . 
" ) ";
 
   91         if ( $this->
getConfig()->getConfigParam( 
'blVariantsSelection' ) ) {
 
   92             $sQ .= 
' group by '.$this->_getViewName( 
'oxarticles' ).
'.oxid ';
 
   95             if ( $oStr->strpos( $sQ, 
"select count( * ) " ) === 0 ) {
 
   96                 $sQ = 
"select count( * ) from ( {$sQ} ) as _cnttable";
 
  109         $aChosenCat = $this->
_getActionIds( 
'oxobject2attribute.oxid' );
 
  113             $sO2AttributeView = $this->
_getViewName(
'oxobject2attribute');
 
  117         } elseif ( is_array( $aChosenCat ) ) {
 
  118             $sQ = 
"delete from oxobject2attribute where oxobject2attribute.oxid in (" . implode( 
", ", 
oxDb::getInstance()->quoteArray( $aChosenCat ) ) . 
") ";
 
  139         $oAttribute = 
oxNew( 
"oxattribute" );
 
  141         if ( $oAttribute->load( $soxId) && is_array( $aAddArticle ) ) {
 
  142             foreach ( $aAddArticle as $sAdd ) {
 
  143                 $oNewGroup = 
oxNew( 
"oxbase" );
 
  144                 $oNewGroup->init( 
"oxobject2attribute" );
 
  145                 $oNewGroup->oxobject2attribute__oxobjectid = 
new oxField( $sAdd );
 
  146                 $oNewGroup->oxobject2attribute__oxattrid   = 
new oxField( $oAttribute->oxattribute__oxid->value );