Ignore:
Timestamp:
2011/09/25 13:15:51 (13 years ago)
Author:
Seasoft
Message:

#1484 (SC_Product#lists の第2引数($arrVal)が実質的に無効)
#1449 (不要な関数・処理の整理)
#1421 (Fix typo.)
#1463 (コーディング規則に従っていない)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php

    r20970 r21256  
    125125 
    126126    /** 
     127     * 商品取得 
    127128     *  
    128      * 商品取得 
    129      * @param array $arrProduct_id 
    130      * @param SC_Product $objProduct 
    131      */ 
    132     function getProductList($arrProduct_id,&$objProduct){ 
    133         $where = ""; 
    134         if (is_array($arrProduct_id) && !empty($arrProduct_id)) { 
    135             $where = 'product_id IN (' . implode(',', $arrProduct_id) . ')'; 
    136         } else { 
    137             // 一致させない 
    138             $where = '0<>0'; 
    139         } 
     129     * @param array $arrProductId 
     130     * @param SC_Product $objProduct 
     131     */ 
     132    function getProductList($arrProductId, &$objProduct){ 
    140133        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    141         $objQuery->setWhere($where); 
    142         return $objProduct->lists($objQuery, $arrProduct_id); 
     134 
     135        // 表示順序 
     136        $order = "update_date DESC, product_id DESC"; 
     137        $objQuery->setOrder($order); 
     138 
     139        return $objProduct->getListByProductIds($objQuery, $arrProductId); 
    143140    } 
    144141 
Note: See TracChangeset for help on using the changeset viewer.