15         array(
'oxartnum', 
'oxarticles', 1, 0, 0),
 
   16         array(
'oxtitle', 
'oxarticles', 1, 1, 0),
 
   17         array(
'oxpos', 
'oxobject2category', 1, 0, 0),
 
   18         array(
'oxean', 
'oxarticles', 0, 0, 0),
 
   19         array(
'oxmpn', 
'oxarticles', 0, 0, 0),
 
   20         array(
'oxprice', 
'oxarticles', 0, 0, 0),
 
   21         array(
'oxstock', 
'oxarticles', 0, 0, 0),
 
   22         array(
'oxid', 
'oxarticles', 0, 0, 1)
 
   24                                  'container2' => array(
 
   25                                      array(
'oxartnum', 
'oxarticles', 1, 0, 0),
 
   26                                      array(
'oxtitle', 
'oxarticles', 1, 1, 0),
 
   27                                      array(
'oxean', 
'oxarticles', 0, 0, 0),
 
   28                                      array(
'oxmpn', 
'oxarticles', 0, 0, 0),
 
   29                                      array(
'oxprice', 
'oxarticles', 0, 0, 0),
 
   30                                      array(
'oxstock', 
'oxarticles', 0, 0, 0),
 
   31                                      array(
'oxid', 
'oxarticles', 0, 0, 1)
 
   49             $sQAdd = 
" from $sArtTable left join $sO2CView on $sArtTable.oxid=$sO2CView.oxobjectid where $sO2CView.oxcatnid = " . $oDb->quote($sSynchOxid);
 
   51                 $sQAdd .= 
" and $sArtTable.oxid not in ( " . implode(
", ", 
oxDb::getInstance()->quoteArray($aSkipArt)) . 
" ) ";
 
   55             $sQAdd = 
" from $sArtTable where ";
 
   57                 $sQAdd .= 
" $sArtTable.oxid in ( " . implode(
", ", 
oxDb::getInstance()->quoteArray($aSkipArt)) . 
" ) ";
 
   80             foreach ($aSkipArt as $sId) {
 
   81                 $sOrderBy = 
" $sArtTable.oxid=" . 
oxDb::getDb()->quote($sId) . 
" " . $sSep . $sOrderBy;
 
   84             $sOrder = 
"order by " . $sOrderBy;
 
   99         if (is_array($aRemoveArt) && is_array($aSkipArt)) {
 
  100             foreach ($aRemoveArt as $sRem) {
 
  101                 if (($iKey = array_search($sRem, $aSkipArt)) !== 
false) {
 
  102                     unset($aSkipArt[$iKey]);
 
  111             $sSelect = 
"select 1 from $sArticleTable left join $sO2CView on $sArticleTable.oxid=$sO2CView.oxobjectid ";
 
  112             $sSelect .= 
"where $sO2CView.oxcatnid = '$soxId' and $sArticleTable.oxparentid = '' and $sArticleTable.oxid ";
 
  113             $sSelect .= 
"not in ( " . implode(
", ", 
oxDb::getInstance()->quoteArray($aSkipArt)) . 
" ) ";
 
  116             echo (
int) 
oxDb::getDb()->getOne($sSelect, 
false, 
false);
 
  129         if (!is_array($aOrdArt)) {
 
  135         if (is_array($aAddArticle)) {
 
  137             foreach ($aAddArticle as $sAdd) {
 
  138                 if (array_search($sAdd, $aOrdArt) === 
false) {
 
  148             $sSelect = 
"select 1 from $sArticleTable left join $sO2CView on $sArticleTable.oxid=$sO2CView.oxobjectid ";
 
  149             $sSelect .= 
"where $sO2CView.oxcatnid = '$soxId' and $sArticleTable.oxparentid = '' and $sArticleTable.oxid ";
 
  150             $sSelect .= 
"not in ( " . implode(
", ", 
oxDb::getInstance()->quoteArray($aOrdArt)) . 
" ) ";
 
  153             echo (
int) 
oxDb::getDb()->getOne($sSelect, 
false, 
false);
 
  164         $oCategory = 
oxNew(
"oxcategory");
 
  166         if ($oCategory->load($sId)) {
 
  171             if (is_array($aNewOrder) && count($aNewOrder)) {
 
  173                 $sSelect = 
"select * from $sO2CView where $sO2CView.oxcatnid='" . $oCategory->getId() . 
"' and $sO2CView.oxobjectid in (" . implode(
", ", 
oxDb::getInstance()->quoteArray($aNewOrder)) . 
" )";
 
  174                 $oList = 
oxNew(
"oxlist");
 
  175                 $oList->init(
"oxbase", 
"oxobject2category");
 
  176                 $oList->selectString($sSelect);
 
  179                 foreach ($oList as $oObj) {
 
  180                     if (($iNewPos = array_search($oObj->oxobject2category__oxobjectid->value, $aNewOrder)) !== 
false) {
 
  181                         $oObj->oxobject2category__oxpos->setValue($iNewPos);
 
  200         $oCategory = 
oxNew(
"oxcategory");
 
  202         if ($oCategory->load($sId)) {
 
  207             $sQuotedCategoryId = $oDb->quote($oCategory->getId());
 
  209             $sSqlShopFilter = 
"";
 
  210             $sSelect = 
"update oxobject2category set oxpos = '0' where oxobject2category.oxcatnid = {$sQuotedCategoryId} {$sSqlShopFilter}";
 
  211             $oDb->execute($sSelect);