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/rss/LC_Page_Rss_Products.php

    r20976 r21256  
    244244     */ 
    245245    function lfGetProductsDetail(&$objQuery, $product_id = 'all'){ 
     246        $objProduct = new SC_Product_Ex(); 
     247 
    246248        // --- 商品詳細の取得 
    247         if ($product_id != 'all') { 
    248             $where = 'product_id = ' . $product_id; 
    249             $objQuery->setWhere($where); 
    250         } 
    251         $objQuery->setOrder('product_id'); 
    252         $objProduct = new SC_Product_Ex(); 
    253         $arrProductLsit = $objProduct->lists($objQuery); 
     249        if ($product_id == 'all') { 
     250            $objQuery->setOrder('product_id'); 
     251            $arrProductLsit = $objProduct->lists($objQuery); 
     252        } else { 
     253            $arrProductLsit = $objProduct->getListByProductIds($objQuery, $product_id); 
     254        } 
     255 
    254256        // 各商品のカテゴリIDとランクの取得 
    255257        $arrProduct = array(); 
Note: See TracChangeset for help on using the changeset viewer.