14                                         array( 
'oxtitle',   
'oxselectlist', 1, 1, 0 ),
 
   15                                         array( 
'oxident',   
'oxselectlist', 1, 0, 0 ),
 
   16                                         array( 
'oxvaldesc', 
'oxselectlist', 1, 0, 0 ),
 
   17                                         array( 
'oxid',      
'oxselectlist', 0, 0, 1 )
 
   19                                     'container2' => array(
 
   20                                         array( 
'oxtitle',   
'oxselectlist', 1, 1, 0 ),
 
   21                                         array( 
'oxident',   
'oxselectlist', 1, 0, 0 ),
 
   22                                         array( 
'oxvaldesc', 
'oxselectlist', 1, 0, 0 ),
 
   23                                         array( 
'oxid',      
'oxobject2selectlist', 0, 0, 1 )
 
   41         $sOxid = ( $sArtId ) ? $sArtId : $sSynchArtId;
 
   42         $sQ = 
"select oxparentid from $sArtViewName where oxid = " . $oDb->quote( $sOxid ) . 
" and oxparentid != '' ";
 
   43         $sQ .= 
"and (select count(oxobjectid) from oxobject2selectlist where oxobjectid = " . $oDb->quote( $sOxid ) . 
") = 0";
 
   44         $sParentId = 
oxDb::getDb()->getOne( $sQ, 
false, 
false );
 
   47         $sQAdd  = 
" from oxobject2selectlist left join $sSLViewName on $sSLViewName.oxid=oxobject2selectlist.oxselnid ";
 
   48         $sQAdd .= 
" where oxobject2selectlist.oxobjectid = " . $oDb->quote( $sOxid ) . 
" ";
 
   50             $sQAdd .= 
"or oxobject2selectlist.oxobjectid = " . $oDb->quote( $sParentId ) . 
" ";
 
   54             $sQAdd  = 
" from $sSLViewName  where $sSLViewName.oxid not in ( select oxobject2selectlist.oxselnid $sQAdd ) ";
 
   67         $aChosenArt = $this->
_getActionIds( 
'oxobject2selectlist.oxid' );
 
   72         } elseif ( is_array( $aChosenArt ) ) {
 
   73             $sQ = 
"delete from oxobject2selectlist where oxobject2selectlist.oxid in (" . implode( 
", ", 
oxDb::getInstance()->quoteArray( $aChosenArt ) ) . 
") ";
 
   95         if ( $soxId && $soxId != 
"-1" && is_array( $aAddSel ) ) {
 
   97             foreach ($aAddSel as $sAdd) {
 
   98                 $oNew = 
oxNew( 
"oxbase" );
 
   99                 $oNew->init( 
"oxobject2selectlist" );
 
  100                 $oNew->oxobject2selectlist__oxobjectid = 
new oxField($soxId);
 
  101                 $oNew->oxobject2selectlist__oxselnid   = 
new oxField($sAdd);
 
  102                 $oNew->oxobject2selectlist__oxsort     = 
new oxField( ( 
int ) $oDb->getOne( 
"select max(oxsort) + 1 from oxobject2selectlist where oxobjectid =  " . $oDb->quote( $soxId ) . 
" ", 
false, false ) );