Changeset 20507 for branches/version-2_5-dev/data/class/SC_Product.php
- Timestamp:
- 2011/03/04 23:24:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Product.php
r20478 r20507 177 177 */ 178 178 function getDetail($productId) { 179 $objQuery =& SC_Query ::getSingletonInstance();179 $objQuery =& SC_Query_Ex::getSingletonInstance(); 180 180 $result = $objQuery->select("*", $this->alldtlSQL("product_id = ?"), 181 181 "product_id = ?", … … 349 349 // 階層分の親を取得 350 350 for ($i = 0; $i < $level -1; $i++) { 351 $objQuery =& SC_Query ::getSingletonInstance();351 $objQuery =& SC_Query_Ex::getSingletonInstance(); 352 352 $objQuery->setWhere('T1.class_combination_id IN (' . implode(', ', array_pad(array(), count($parents), '?')) . ')'); 353 353 … … 404 404 */ 405 405 function getProductsClass($productClassId) { 406 $objQuery =& SC_Query ::getSingletonInstance();406 $objQuery =& SC_Query_Ex::getSingletonInstance(); 407 407 $objQuery->setWhere('product_class_id = ?'); 408 408 $objQuery->setOrder("T2.level DESC"); … … 422 422 return array(); 423 423 } 424 $objQuery =& SC_Query ::getSingletonInstance();424 $objQuery =& SC_Query_Ex::getSingletonInstance(); 425 425 $objQuery->setWhere('product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')'); 426 426 $objQuery->setOrder("T2.level DESC"); … … 500 500 return array(); 501 501 } 502 $objQuery =& SC_Query ::getSingletonInstance();502 $objQuery =& SC_Query_Ex::getSingletonInstance(); 503 503 $cols = 'product_id, product_status_id'; 504 504 $from = 'dtb_product_status'; … … 528 528 $val['del_flg'] = '0'; 529 529 530 $objQuery =& SC_Query ::getSingletonInstance();530 $objQuery =& SC_Query_Ex::getSingletonInstance(); 531 531 $objQuery->delete('dtb_product_status', 'product_id = ?', array($productId)); 532 532 foreach ($productStatusIds as $productStatusId) { … … 579 579 } 580 580 581 $objQuery =& SC_Query ::getSingletonInstance();581 $objQuery =& SC_Query_Ex::getSingletonInstance(); 582 582 $objQuery->update('dtb_products_class', array(), 583 583 "product_class_id = ?", array($productClassId), … … 750 750 */ 751 751 function getClasscategoryIdsByProductClassId($productId, $classcategory_id1, $classcategory_id2) { 752 $objQuery = new SC_Query ();752 $objQuery = new SC_Query_Ex(); 753 753 $col = "T1.product_id AS product_id,T1.product_class_id AS product_class_id,T1.classcategory_id1 AS classcategory_id1,T1.classcategory_id2 AS classcategory_id2"; 754 754 $table = <<< __EOS__
Note: See TracChangeset
for help on using the changeset viewer.
