Ignore:
Timestamp:
2012/04/15 03:05:06 (12 years ago)
Author:
AMUAMU
Message:

#1754 (exit;を個別の処理でしない) #1692 (プラグイン機能) 各ファイルでフックポイントの呼出を書かないで、自動的にフックポイントを呼び出すように修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r21693 r21743  
    7676     */ 
    7777    function action() { 
    78         // フックポイント. 
    79         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    80         $objPlugin->doAction('LC_Page_Shopping_action_before', array($this)); 
    8178 
    8279        $objSiteSess = new SC_SiteSession_Ex(); 
     
    9794        // ログイン済みの場合は次画面に遷移 
    9895        if ($objCustomer->isLoginSuccess(true)) { 
    99             // フックポイント. 
    100             $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    101             $objPlugin->doAction('LC_Page_Shopping_action_logined', array($this)); 
    10296 
    10397            SC_Response_Ex::sendRedirect( 
     
    10599                                           $objCustomer, $objPurchase, 
    106100                                           $objSiteSess)); 
    107             exit; 
     101            SC_Response_Ex::actionExit(); 
    108102        } 
    109103        // 非会員かつ, ダウンロード商品の場合はエラー表示 
     
    113107                     . 'お手数ですが、会員登録をお願いします。'; 
    114108                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, $objSiteSess, false, $msg); 
    115                 exit; 
     109                SC_Response_Ex::actionExit(); 
    116110            } 
    117111        } 
     
    136130                    if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 
    137131                        if ($this->hasEmailMobile($objCustomer) == false) { 
    138                             // フックポイント. 
    139                             $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    140                             $objPlugin->doAction('LC_Page_Shopping_action_login_mobile', array($this)); 
    141132 
    142133                            SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 
    143                             exit; 
     134                            SC_Response_Ex::actionExit(); 
    144135                        } 
    145136                    } 
    146137                    // スマートフォンの場合はログイン成功を返す 
    147138                    elseif (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    148                         // フックポイント. 
    149                         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    150                         $objPlugin->doAction('LC_Page_Shopping_action_login_smartphone', array($this)); 
    151  
    152                         echo SC_Utils_Ex::jsonEncode(array('success' =>  
     139 
     140                        echo SC_Utils_Ex::jsonEncode(array('success' => 
    153141                                                     $this->getNextLocation($this->cartKey, $this->tpl_uniqid, 
    154142                                                                            $objCustomer, $objPurchase, 
    155143                                                                            $objSiteSess))); 
    156                         exit; 
     144                        SC_Response_Ex::actionExit(); 
    157145                    } 
    158                     // フックポイント. 
    159                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    160                     $objPlugin->doAction('LC_Page_Shopping_action_login', array($this)); 
    161146 
    162147                    SC_Response_Ex::sendRedirect( 
     
    164149                                                   $objCustomer, $objPurchase, 
    165150                                                   $objSiteSess)); 
    166                     exit; 
     151                    SC_Response_Ex::actionExit(); 
    167152                } 
    168153                // ログインに失敗した場合 
     
    172157                        if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    173158                            echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 
    174                             exit; 
     159                            SC_Response_Ex::actionExit(); 
    175160                        } else { 
    176161                            SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 
    177                             exit; 
     162                            SC_Response_Ex::actionExit(); 
    178163                        } 
    179164                    } else { 
    180165                        if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    181166                            echo $this->lfGetErrorMessage(SITE_LOGIN_ERROR); 
    182                             exit; 
     167                            SC_Response_Ex::actionExit(); 
    183168                        } else { 
    184169                            SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 
    185                             exit; 
     170                            SC_Response_Ex::actionExit(); 
    186171                        } 
    187172                    } 
     
    203188                    $objSiteSess->setRegistFlag(); 
    204189 
    205                     // フックポイント. 
    206                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    207                     $objPlugin->doAction('LC_Page_Shopping_action_nonmember_confirm', array($this)); 
    208190 
    209191                    SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH); 
    210                     exit; 
     192                    SC_Response_Ex::actionExit(); 
    211193                } 
    212194                break; 
     
    214196            // 前のページに戻る 
    215197            case 'return': 
    216                 // フックポイント. 
    217                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    218                 $objPlugin->doAction('LC_Page_Shopping_action_return', array($this)); 
    219198 
    220199                SC_Response_Ex::sendRedirect(CART_URLPATH); 
    221                 exit; 
     200                SC_Response_Ex::actionExit(); 
    222201                break; 
    223202 
     
    227206                if (USE_MULTIPLE_SHIPPING === false) { 
    228207                    SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 
    229                     exit; 
     208                    SC_Response_Ex::actionExit(); 
    230209                } 
    231210 
     
    239218                    $objSiteSess->setRegistFlag(); 
    240219 
    241                     // フックポイント. 
    242                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    243                     $objPlugin->doAction('LC_Page_Shopping_action_multiple', array($this)); 
    244220 
    245221                    SC_Response_Ex::sendRedirect(MULTIPLE_URLPATH); 
    246                     exit; 
     222                    SC_Response_Ex::actionExit(); 
    247223                } 
    248224                $this->tpl_mainpage = $nonmember_mainpage; 
     
    286262            $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); 
    287263        } 
    288         // フックポイント. 
    289         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    290         $objPlugin->doAction('LC_Page_Shopping_action_after', array($this)); 
     264 
    291265    } 
    292266 
Note: See TracChangeset for help on using the changeset viewer.