Ignore:
Timestamp:
2011/02/11 18:57:58 (13 years ago)
Author:
kimoto
Message:

リファクタリング #981

File:
1 edited

Legend:

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

    r20116 r20148  
    2323 
    2424// {{{ requires 
    25 require_once(CLASS_REALDIR . "pages/LC_Page.php"); 
     25require_once(CLASS_REALDIR . "pages/mypage/LC_Page_AbstractMypage.php"); 
    2626 
    2727/** 
     
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_MyPage extends LC_Page { 
     34class LC_Page_MyPage extends LC_Page_AbstractMypage { 
    3535 
    3636    // {{{ properties 
     
    4949    function init() { 
    5050        parent::init(); 
    51         $this->tpl_title = 'MYページ'; 
     51        $this->tpl_title        = 'MYページ'; 
    5252        if (Net_UserAgent_Mobile::isMobile() === true){ 
    5353            $this->tpl_subtitle = 'MYページ'; 
     
    5555            $this->tpl_subtitle = '購入履歴一覧'; 
    5656        } 
    57         $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl'; 
    58         $this->tpl_mainno = 'mypage'; 
    59         $this->tpl_mypageno = 'index'; 
     57        $this->tpl_navi         = TEMPLATE_REALDIR . 'mypage/navi.tpl'; 
     58        $this->tpl_mainno       = 'mypage'; 
     59        $this->tpl_mypageno     = 'index'; 
    6060        $this->httpCacheControl('nocache'); 
    6161    } 
     
    6868    function process() { 
    6969        parent::process(); 
    70         $this->action(); 
    71         $this->sendResponse(); 
    7270    } 
    73      
     71 
    7472    /** 
    7573     * Page のAction. 
     
    8179        $objQuery = new SC_Query(); 
    8280        $objCustomer = new SC_Customer(); 
    83          
    84         // 退会判定用情報の取得 
    85         $this->tpl_login = $objCustomer->isLoginSuccess(true); 
    86  
    87         // ログインチェック 
    88         if(!$objCustomer->isLoginSuccess(true)) { 
    89             SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    90         }else { 
    91             //マイページトップ顧客情報表示用 
    92             $this->CustomerName1 = $objCustomer->getvalue('name01'); 
    93             $this->CustomerName2 = $objCustomer->getvalue('name02'); 
    94             $this->CustomerPoint = $objCustomer->getvalue('point'); 
    95         } 
    9681 
    9782        //ページ送り用 
     
    146131            $this->tpl_strnavi = $objNavi->strnavi;     // 表示文字列 
    147132            $startno = $objNavi->start_row; 
    148              
     133 
    149134            // 取得範囲の指定(開始行番号、行数のセット) 
    150135            $objQuery->setLimitOffset(SEARCH_PMAX, $startno); 
    151136        } 
    152          
     137 
    153138        // 表示順序 
    154139        $objQuery->setOrder($order); 
     
    171156        parent::destroy(); 
    172157    } 
    173  
    174     //エラーチェック 
    175  
    176     function lfErrorCheck() { 
    177         $objErr = new SC_CheckError(); 
    178         $objErr->doFunc(array("メールアドレス", "login_email", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","EMAIL_CHECK","MAX_LENGTH_CHECK")); 
    179         $objErr->dofunc(array("パスワード", "login_password", PASSWORD_LEN2), array("EXIST_CHECK","ALNUM_CHECK")); 
    180         return $objErr->arrErr; 
    181     } 
    182  
    183     /* パラメータ情報の初期化 */ 
    184     function lfInitParam(&$objFormParam) { 
    185  
    186         $objFormParam->addParam("記憶する", "login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    187         $objFormParam->addParam("メールアドレス", "login_email", MTEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    188         $objFormParam->addParam("パスワード", "login_pass", STEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    189     } 
    190  
    191158} 
    192 ?> 
Note: See TracChangeset for help on using the changeset viewer.