Changeset 20003
- Timestamp:
- 2011/01/20 05:03:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Product.php
r19746 r20003 491 491 */ 492 492 function getProductStatus($productIds) { 493 if (empty($productIds)) { 494 return array(); 495 } 493 496 $objQuery =& SC_Query::getSingletonInstance(); 494 $productStatus = $objQuery->select("product_id, product_status_id", 495 "dtb_product_status", 496 'del_flg = 0 AND product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')', $productIds); 497 $cols = 'product_id, product_status_id'; 498 $from = 'dtb_product_status'; 499 $where = 'del_flg = 0 AND product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')'; 500 $productStatus = $objQuery->select($cols, $from, $where, $productIds); 497 501 $results = array(); 498 502 foreach ($productStatus as $status) {
Note: See TracChangeset
for help on using the changeset viewer.