Ignore:
Timestamp:
2011/01/18 20:06:28 (13 years ago)
Author:
kotani
Message:

#880(mobile/sphoneディレクトリを削除)に対応。(mobile/mypageディレクトリ)

  • モバイルサイトのMYページをPCサイトの動作に合わせる。
  • mobileAction() を削除し、ビジネスロジック統一。
File:
1 edited

Legend:

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

    r19912 r19959  
    4545        parent::init(); 
    4646        $this->tpl_title = 'MYページ'; 
    47         if ( Net_UserAgent_Mobile::isMobile() === true){ 
    48             $this->tpl_title .= '/退会手続き(入力ページ)'; 
    49         } else { 
    50             $this->tpl_subtitle = '退会手続き(入力ページ)'; 
    51         } 
     47        $this->tpl_subtitle = '退会手続き(入力ページ)'; 
    5248        $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl'; 
    5349        $this->tpl_mainno = 'mypage'; 
     
    6258    function process() { 
    6359        parent::process(); 
    64         if ( Net_UserAgent_Mobile::isMobile() === true){ 
    65             $this->mobileAction(); 
    66         } else { 
    67             $this->action();             
    68         } 
     60        $this->action(); 
    6961        $this->sendResponse(); 
    7062    } 
     
    7668     */ 
    7769    function action() { 
     70        $objCustomer = new SC_Customer(); 
    7871        $objSiteSess = new SC_SiteSession(); 
    7972         
    8073        // 退会判定用情報の取得 
    81         $this->tpl_login = $objCustomer->isLoginSuccess(); 
     74        $this->tpl_login = $objCustomer->isLoginSuccess(true); 
    8275 
    8376        $this->lfCheckLogin(); 
     
    10194            // 正しい遷移かどうかをチェック 
    10295            $this->lfIsValidMovement($objSiteSess); 
    103             $this->lfDeleteCustomer();    //会員削除 
    104         } 
    105  
    106     } 
    107  
    108     /** 
    109      * Page のAction(モバイル). 
    110      * 
    111      * @return void 
    112      */ 
    113     function mobileAction() { 
    114  
    115         $objQuery = new SC_Query(); 
    116  
    117         $this->lfCheckLogin(); 
    118  
    119         if (isset($_POST['no'])) { 
    120             SC_Response_Ex::sendRedirect(DIR_INDEX_URL); 
    121             exit; 
    122         } elseif (isset($_POST['complete'])){ 
    12396            $this->lfDeleteCustomer();    //会員削除 
    12497        } 
     
    149122        $objCustomer = new SC_Customer(); 
    150123        //ログイン判定 
    151         if (!$objCustomer->isLoginSuccess()){       
     124        if (!$objCustomer->isLoginSuccess(true)){ 
    152125            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    153126        }else { 
Note: See TracChangeset for help on using the changeset viewer.