14                                         array( 
'oxtitle', 
'oxattribute', 1, 1, 0 ),
 
   15                                         array( 
'oxid',    
'oxattribute', 0, 0, 1 )
 
   17                                 'container2' => array(
 
   18                                         array( 
'oxtitle', 
'oxattribute', 1, 1, 0 ),
 
   19                                         array( 
'oxid',    
'oxobject2attribute', 0, 0, 1 ),
 
   20                                         array( 
'oxvalue', 
'oxobject2attribute', 0, 1, 1 ),
 
   21                                         array( 
'oxattrid', 
'oxobject2attribute', 0, 0, 1 ),
 
   37         $sO2AViewName  = $this->
_getViewName(
'oxobject2attribute');
 
   40             $sQAdd  = 
" from $sO2AViewName left join $sAttrViewName on $sAttrViewName.oxid=$sO2AViewName.oxattrid ";
 
   41             $sQAdd .= 
" where $sO2AViewName.oxobjectid = " . $oDb->quote( $sArtId ) . 
" ";
 
   43             $sQAdd  = 
" from $sAttrViewName where $sAttrViewName.oxid not in ( select $sO2AViewName.oxattrid from $sO2AViewName left join $sAttrViewName on $sAttrViewName.oxid=$sO2AViewName.oxattrid ";
 
   44             $sQAdd .= 
" where $sO2AViewName.oxobjectid = " . $oDb->quote( $sSynchArtId ) . 
" ) ";
 
   57         $aChosenArt = $this->
_getActionIds( 
'oxobject2attribute.oxid' );
 
   60             $sO2AViewName  = $this->
_getViewName(
'oxobject2attribute');
 
   64         } elseif ( is_array( $aChosenArt ) ) {
 
   65             $sQ = 
"delete from oxobject2attribute where oxobject2attribute.oxid in (" . implode( 
", ", 
oxDb::getInstance()->quoteArray( $aChosenArt ) ) . 
") ";
 
   86         if ( $soxId && $soxId != 
"-1" && is_array( $aAddCat ) ) {
 
   87             foreach ($aAddCat as $sAdd) {
 
   88                 $oNew = 
oxNew( 
"oxbase" );
 
   89                 $oNew->init( 
"oxobject2attribute" );
 
   90                 $oNew->oxobject2attribute__oxobjectid = 
new oxField($soxId);
 
   91                 $oNew->oxobject2attribute__oxattrid   = 
new oxField($sAdd);
 
  111             $sAttributeValue = iconv( 
'UTF-8', 
oxRegistry::getLang()->translateString(
"charset"), $sAttributeValue );
 
  114         $oArticle = 
oxNew( 
"oxarticle" );
 
  115         if ( $oArticle->load( $soxId ) ) {
 
  118             if ( isset( $sAttributeId) && (
"" != $sAttributeId ) ) {
 
  119                 $sO2AViewName = $this->
_getViewName( 
"oxobject2attribute" );
 
  120                 $sSelect = 
"select * from $sO2AViewName where $sO2AViewName.oxobjectid= " . $oDb->quote( $oArticle->oxarticles__oxid->value ) . 
" and 
  121                             $sO2AViewName.oxattrid= " . $oDb->quote( $sAttributeId );
 
  122                 $oO2A = 
oxNew( 
"oxi18n" );
 
  124                 $oO2A->init( 
"oxobject2attribute" );
 
  125                 if ( $oO2A->assignRecord( $sSelect ) ) {
 
  126                     $oO2A->oxobject2attribute__oxvalue->setValue( $sAttributeValue );