Changeset 21256 for branches/version-2_11-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php
- Timestamp:
- 2011/09/25 13:15:51 (13 years ago)
- 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 213 213 214 214 /** 215 * 商品取得 215 216 * 216 * 商品取得 217 * @param array $arrProduct_id 217 * @param array $arrProductId 218 218 * @param SC_Product $objProduct 219 219 */ 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){ 228 221 $objQuery =& SC_Query_Ex::getSingletonInstance(); 229 $objQuery->setWhere($where); 222 230 223 // 表示順序 231 224 $order = "update_date DESC, product_id DESC"; 232 225 $objQuery->setOrder($order); 233 return $objProduct->lists($objQuery, $arrProduct_id); 226 227 return $objProduct->getListByProductIds($objQuery, $arrProductId); 234 228 } 235 229 }
Note: See TracChangeset
for help on using the changeset viewer.