Ignore:
Timestamp:
2007/09/05 15:02:32 (17 years ago)
Author:
nanasess
Message:

リファクタリング

  • 未定義変数の修正
  • リファクタリングに伴う修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r15532 r15613  
    1414 * @package Page 
    1515 * @author LOCKON CO.,LTD. 
    16  * @version $Id$ 
     16 * @version $Id:LC_Page_Shopping_Payment.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    1818class LC_Page_Shopping_Payment extends LC_Page { 
     
    5454        $objCartSess = new SC_CartSession(); 
    5555        $objCampaignSess = new SC_CampaignSession(); 
     56        $objDb = new SC_Helper_DB_Ex(); 
    5657        $this->objCustomer = new SC_Customer(); 
    5758        $objSiteInfo = $objView->objSiteInfo; 
     
    7172 
    7273        // 会員ログインチェック 
    73         if($objCustomer->isLoginSuccess()) { 
     74        if($this->objCustomer->isLoginSuccess()) { 
    7475            $this->tpl_login = '1'; 
    75             $this->tpl_user_point = $objCustomer->getValue('point'); 
     76            $this->tpl_user_point = $this->objCustomer->getValue('point'); 
    7677            //戻り先URL 
    7778            $this->tpl_back_url = URL_DELIV_TOP; 
     
    8182 
    8283        // 金額の取得 (購入途中で売り切れた場合にはこの関数内にてその商品の個数が0になる) 
    83         $this = SC_Utils_Ex::sfTotalCart($this, $objCartSess, $arrInfo); 
    84         $this->arrData = SC_Utils_Ex::sfTotalConfirm($arrData, $this, $objCartSess, $arrInfo); 
     84        $objDb->sfTotalCart($this, $objCartSess, $arrInfo); 
     85 
     86        if (empty($arrData)) $arrData = array(); 
     87        $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $arrInfo); 
    8588 
    8689        // カー都内の商品の売り切れチェック 
    8790        $objCartSess->chkSoldOut($objCartSess->getCartList()); 
     91 
     92        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    8893 
    8994        switch($_POST['mode']) { 
     
    133138        $this->arrPayment = $this->lfGetPayment($total_pretax); 
    134139        // 配送時間の取得 
    135         $arrRet = $this->sfGetDelivTime($this->objFormParam->getValue('payment_id')); 
     140        $arrRet = $objDb->sfGetDelivTime($this->objFormParam->getValue('payment_id')); 
    136141        $this->arrDelivTime = SC_Utils_Ex::sfArrKeyValue($arrRet, 'time_id', 'deliv_time'); 
    137         $this->objCustomer = $objCustomer; 
    138         // 配送日一覧の取得 
     142 
     143        // 配送日一覧の取得 
    139144        $this->arrDelivDate = $this->lfGetDelivDate(); 
    140145 
Note: See TracChangeset for help on using the changeset viewer.