Changeset 21368


Ignore:
Timestamp:
2011/12/19 16:08:17 (12 years ago)
Author:
shutta
Message:

refs #1579 (SC_Query::getSingletonInstance()への置き換え)
既存コード中の
$objQuery = new SC_Query_Ex();
のような部分を、
$objQuery =& SC_Query_Ex::getSingletonInstance();
へ置き換え。

Location:
branches/version-2_11-dev/data/class/pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php

    r21319 r21368  
    177177    // お気に入り商品削除 
    178178    function lfDeleteFavoriteProduct($customer_id, $product_id) { 
    179         $objQuery   = new SC_Query_Ex(); 
     179        $objQuery       =& SC_Query_Ex::getSingletonInstance(); 
    180180        $count      = $objQuery->count("dtb_customer_favorite_products", "customer_id = ? AND product_id = ?", array($customer_id, $product_id)); 
    181181 
  • branches/version-2_11-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php

    r21113 r21368  
    7474        $objSiteSess = new SC_SiteSession_Ex(); 
    7575        $objCustomer = new SC_Customer_Ex(); 
    76         $objQuery = new SC_Query_Ex(); 
     76        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    7777        $objDb = new SC_Helper_DB_Ex(); 
    7878        $objPurchase = new SC_Helper_Purchase_Ex(); 
Note: See TracChangeset for help on using the changeset viewer.