Ignore:
Timestamp:
2009/06/06 03:19:45 (15 years ago)
Author:
Seasoft
Message:

・店舗基本情報の取得処理にランタイムのキャッシュ機構を設け、店舗基本情報を深く渡し回す実装を改めた。
・SC_Utils 冒頭のコメントに従い、インスタンスを生成していた処理を、Helper クラスへ移す。計算処理のみ SC_Utils に残す。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r18049 r18052  
    7474        $objDb = new SC_Helper_DB_Ex(); 
    7575        $this->objCustomer = new SC_Customer(); 
    76         $objSiteInfo = $objView->objSiteInfo; 
    77         $arrInfo = $objSiteInfo->data; 
    7876 
    7977        // パラメータ管理クラス 
     
    10098 
    10199        // 金額の取得 (購入途中で売り切れた場合にはこの関数内にてその商品の数量が0になる) 
    102         $objDb->sfTotalCart($this, $objCartSess, $arrInfo); 
     100        $objDb->sfTotalCart($this, $objCartSess); 
    103101 
    104102        if (empty($arrData)) $arrData = array(); 
    105         $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $arrInfo); 
     103        $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess); 
    106104 
    107105        // カート内の商品の売り切れチェック 
     
    149147        } 
    150148 
    151         // 店舗情報の取得 
    152         $arrInfo = $objSiteInfo->data; 
    153149        // 購入金額の取得得 
    154         $total_pretax = $objCartSess->getAllProductsTotal($arrInfo); 
     150        $total_pretax = $objCartSess->getAllProductsTotal(); 
    155151        // 支払い方法の取得 
    156152        $this->arrPayment = $this->lfGetPayment($total_pretax); 
     
    189185        $this->objCustomer = new SC_Customer(); 
    190186        $objDb = new SC_Helper_DB_Ex(); 
    191         $objSiteInfo = $objView->objSiteInfo; 
    192         $arrInfo = $objSiteInfo->data; 
    193187 
    194188        // パラメータ管理クラス 
     
    211205 
    212206        // 金額の取得 (購入途中で売り切れた場合にはこの関数内にてその商品の数量が0になる) 
    213         $objDb->sfTotalCart($this, $objCartSess, $arrInfo); 
     207        $objDb->sfTotalCart($this, $objCartSess); 
    214208        if (empty($arrData)) $arrData = array(); 
    215         $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $arrInfo); 
     209        $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess); 
    216210 
    217211        // カート内の商品の売り切れチェック 
     
    295289        } 
    296290 
    297         // 店舗情報の取得 
    298         $arrInfo = $objSiteInfo->data; 
    299291        // 購入金額の取得得 
    300         $total_pretax = $objCartSess->getAllProductsTotal($arrInfo); 
     292        $total_pretax = $objCartSess->getAllProductsTotal(); 
    301293        // 支払い方法の取得 
    302294        $this->arrPayment = $this->lfGetPayment($total_pretax); 
     
    398390        } 
    399391 
    400         $objView = new SC_MobileView(); 
    401         $objSiteInfo = $objView->objSiteInfo; 
    402         $arrInfo = $objSiteInfo->data; 
    403392        $objCartSess = new SC_CartSession(); 
    404         $arrInfo = $objSiteInfo->data; 
    405393        // 購入金額の取得得 
    406         $total_pretax = $objCartSess->getAllProductsTotal($arrInfo); 
     394        $total_pretax = $objCartSess->getAllProductsTotal(); 
    407395        // 支払い方法の取得 
    408396        $arrPayment = $this->lfGetPayment($total_pretax); 
Note: See TracChangeset for help on using the changeset viewer.