Ignore:
Timestamp:
2011/03/04 23:24:33 (15 years ago)
Author:
shutta
Message:

SC_Queryクラスのclass_extends対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Product.php

    r20478 r20507  
    177177     */ 
    178178    function getDetail($productId) { 
    179         $objQuery =& SC_Query::getSingletonInstance(); 
     179        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    180180        $result = $objQuery->select("*", $this->alldtlSQL("product_id = ?"), 
    181181                                    "product_id = ?", 
     
    349349        // 階層分の親を取得 
    350350        for ($i = 0; $i < $level -1; $i++) { 
    351             $objQuery =& SC_Query::getSingletonInstance(); 
     351            $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    352352            $objQuery->setWhere('T1.class_combination_id IN (' . implode(', ', array_pad(array(), count($parents), '?')) . ')'); 
    353353 
     
    404404     */ 
    405405    function getProductsClass($productClassId) { 
    406         $objQuery =& SC_Query::getSingletonInstance(); 
     406        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    407407        $objQuery->setWhere('product_class_id = ?'); 
    408408        $objQuery->setOrder("T2.level DESC"); 
     
    422422            return array(); 
    423423        } 
    424         $objQuery =& SC_Query::getSingletonInstance(); 
     424        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    425425        $objQuery->setWhere('product_id IN (' . implode(', ', array_pad(array(), count($productIds), '?')) . ')'); 
    426426        $objQuery->setOrder("T2.level DESC"); 
     
    500500            return array(); 
    501501        } 
    502         $objQuery =& SC_Query::getSingletonInstance(); 
     502        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    503503        $cols = 'product_id, product_status_id'; 
    504504        $from = 'dtb_product_status'; 
     
    528528        $val['del_flg'] = '0'; 
    529529 
    530         $objQuery =& SC_Query::getSingletonInstance(); 
     530        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    531531        $objQuery->delete('dtb_product_status', 'product_id = ?', array($productId)); 
    532532        foreach ($productStatusIds as $productStatusId) { 
     
    579579        } 
    580580 
    581         $objQuery =& SC_Query::getSingletonInstance(); 
     581        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    582582        $objQuery->update('dtb_products_class', array(), 
    583583                          "product_class_id = ?", array($productClassId), 
     
    750750     */ 
    751751    function getClasscategoryIdsByProductClassId($productId, $classcategory_id1, $classcategory_id2) { 
    752         $objQuery = new SC_Query(); 
     752        $objQuery = new SC_Query_Ex(); 
    753753        $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"; 
    754754        $table = <<< __EOS__ 
Note: See TracChangeset for help on using the changeset viewer.