コード例 #1
0
 /**
  * Returns SQL query addon for sorting
  *
  * @return string
  */
 protected function _getSorting()
 {
     $sOrder = '';
     if (oxRegistry::getConfig()->getRequestParameter('synchoxid')) {
         $sOrder = parent::_getSorting();
     } elseif ($aSkipArt = oxRegistry::getSession()->getVariable('neworder_sess')) {
         $sOrderBy = '';
         $sArtTable = $this->_getViewName('oxarticles');
         $sSep = '';
         foreach ($aSkipArt as $sId) {
             $sOrderBy = " {$sArtTable}.oxid=" . oxDb::getDb()->quote($sId) . " " . $sSep . $sOrderBy;
             $sSep = ", ";
         }
         $sOrder = "order by " . $sOrderBy;
     }
     return $sOrder;
 }
コード例 #2
0
 /**
  * Returns SQL query addon for sorting
  *
  * @return string
  */
 protected function _getSorting()
 {
     if (oxConfig::getParameter('oxid') && !oxConfig::getParameter('synchoxid')) {
         return 'order by oxactions2article.oxsort ';
     }
     return parent::_getSorting();
 }
コード例 #3
0
 /**
  * Returns SQL query addon for sorting
  *
  * @return string
  */
 protected function _getSorting()
 {
     $sOxIdParameter = oxRegistry::getConfig()->getRequestParameter('oxid');
     $sSynchOxidParameter = oxRegistry::getConfig()->getRequestParameter('synchoxid');
     if ($sOxIdParameter && !$sSynchOxidParameter) {
         return 'order by oxactions2article.oxsort ';
     }
     return parent::_getSorting();
 }