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_Confirm.php

    r17994 r18052  
    7171        $objCampaignSess = new SC_CampaignSession(); 
    7272        $objCustomer = new SC_Customer(); 
    73         $arrInfo = $objSiteInfo->data; 
    7473        $objQuery = new SC_Query(); 
    7574        $objDb = new SC_Helper_DB_Ex(); 
     
    8382 
    8483        // カート集計処理 
    85         $objDb->sfTotalCart($this, $objCartSess, $arrInfo); 
     84        $objDb->sfTotalCart($this, $objCartSess); 
    8685        // 一時受注テーブルの読込 
    8786        $arrData = $objDb->sfGetOrderTemp($uniqid); 
    8887        // カート集計を元に最終計算 
    89         $arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $arrInfo, $objCustomer, $objCampaignSess); 
     88        $arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $objCustomer); 
    9089        // キャンペーンからの遷移で送料が無料だった場合の処理 
    9190        if($objCampaignSess->getIsCampaign()) { 
     
    161160 
    162161        $this->arrData = $arrData; 
    163         $this->arrInfo = $arrInfo; 
     162        $this->arrInfo = $objSiteInfo->data; 
    164163        $objView->assignobj($this); 
    165164        // フレームを選択(キャンペーンページから遷移なら変更) 
     
    187186        $objSiteSess = new SC_SiteSession(); 
    188187        $objCustomer = new SC_Customer(); 
    189         $arrInfo = $objSiteInfo->data; 
    190188        $objQuery = new SC_Query(); 
    191189        $objDb = new SC_Helper_DB_Ex(); 
     
    199197 
    200198        // カート集計処理 
    201         $objDb->sfTotalCart($this, $objCartSess, $arrInfo); 
     199        $objDb->sfTotalCart($this, $objCartSess); 
    202200        // 一時受注テーブルの読込 
    203201        $arrData = $objDb->sfGetOrderTemp($uniqid); 
    204202        // カート集計を元に最終計算 
    205         $arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $arrInfo, $objCustomer); 
     203        $arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $objCustomer); 
    206204 
    207205        // カート内の商品の売り切れチェック 
     
    265263        } 
    266264        $this->arrData = $arrData; 
    267         $this->arrInfo = $arrInfo; 
     265        $this->arrInfo = $objSiteInfo->data; 
    268266        $objView->assignobj($this); 
    269267        $objView->display(SITE_FRAME); 
Note: See TracChangeset for help on using the changeset viewer.