Ignore:
Timestamp:
2007/09/05 17:00:49 (17 years ago)
Author:
nanasess
Message:

リファクタリング

  • クラス化に伴う修正
File:
1 edited

Legend:

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

    r15532 r15622  
    1414 * @package Page 
    1515 * @author LOCKON CO.,LTD. 
    16  * @version $Id$ 
     16 * @version $Id:LC_Page_Shopping_Deliv.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    1818class LC_Page_Shopping_Deliv extends LC_Page { 
     
    7171        // ユーザユニークIDの取得と購入状態の正当性をチェック 
    7272        $uniqid = SC_Utils_Ex::sfCheckNormalAccess($objSiteSess, $objCartSess); 
    73         $objPage->tpl_uniqid = $uniqid; 
     73        $this->tpl_uniqid = $uniqid; 
     74 
     75        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    7476 
    7577        // ログインチェック 
     
    8284        case 'login': 
    8385            $this->objLoginFormParam->toLower('login_email'); 
    84             $objPage->arrErr = $this->objLoginFormParam->checkError(); 
     86            $this->arrErr = $this->objLoginFormParam->checkError(); 
    8587            $arrForm =  $this->objLoginFormParam->getHashArray(); 
    8688            // クッキー保存判定 
     
    9193            } 
    9294 
    93             if(count($objPage->arrErr) == 0) { 
     95            if(count($this->arrErr) == 0) { 
    9496                // ログイン判定 
    9597                if(!$objCustomer->getCustomerDataFromEmailPass($arrForm['login_pass'], $arrForm['login_email'])) { 
     
    157159            $where = "order_temp_id = ?"; 
    158160            $arrRet = $objQuery->select("*", "dtb_order_temp", $where, array($uniqid)); 
     161            if (empty($arrRet)) $arrRet = array(""); 
    159162            $this->objFormParam->setParam($arrRet[0]); 
    160163            break; 
     
    172175        $objQuery->setorder("other_deliv_id DESC"); 
    173176        $objOtherAddr = $objQuery->select($col, "dtb_other_deliv", $where, array($_SESSION['customer']['customer_id'])); 
    174         $objPage->arrAddr = $arrCustomerAddr; 
    175         $objPage->tpl_addrmax = count($objOtherAddr); 
     177        $this->arrAddr = $arrCustomerAddr; 
     178        $this->tpl_addrmax = count($objOtherAddr); 
    176179        $cnt = 1; 
    177180        foreach($objOtherAddr as $val) { 
    178             $objPage->arrAddr[$cnt] = $val; 
     181            $this->arrAddr[$cnt] = $val; 
    179182            $cnt++; 
    180183        } 
    181184 
    182185        // 入力値の取得 
    183         $objPage->arrForm = $this->objFormParam->getFormParamList(); 
    184         $objPage->arrErr = $arrErr; 
    185  
    186         $objView->assignobj($objPage); 
     186        if (!isset($arrErr)) $arrErr = array(); 
     187        $this->arrForm = $this->objFormParam->getFormParamList(); 
     188        $this->arrErr = $arrErr; 
     189 
     190        $objView->assignobj($this); 
    187191        // フレームを選択(キャンペーンページから遷移なら変更) 
    188192        $objCampaignSess->pageView($objView); 
Note: See TracChangeset for help on using the changeset viewer.