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/contents/LC_Page_Admin_Contents_RecommendSearch.php

    r21250 r21256  
    213213 
    214214    /** 
     215     * 商品取得 
    215216     *  
    216      * 商品取得 
    217      * @param array $arrProduct_id 
     217     * @param array $arrProductId 
    218218     * @param SC_Product $objProduct 
    219219     */ 
    220     function getProductList($arrProduct_id,&$objProduct){ 
    221         $where = ""; 
    222         if (is_array($arrProduct_id) && !empty($arrProduct_id)) { 
    223             $where = 'product_id IN (' . implode(',', $arrProduct_id) . ')'; 
    224         } else { 
    225             // 一致させない 
    226             $where = '0<>0'; 
    227         } 
     220    function getProductList($arrProductId, &$objProduct){ 
    228221        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    229         $objQuery->setWhere($where); 
     222 
    230223        // 表示順序 
    231224        $order = "update_date DESC, product_id DESC"; 
    232225        $objQuery->setOrder($order); 
    233         return $objProduct->lists($objQuery, $arrProduct_id); 
     226 
     227        return $objProduct->getListByProductIds($objQuery, $arrProductId); 
    234228    } 
    235229} 
Note: See TracChangeset for help on using the changeset viewer.