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

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

Location:
branches/version-2_12-dev/data/class/pages/frontparts
Files:
8 edited

Legend:

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

    r21693 r21743  
    6565     */ 
    6666    function action() { 
    67         // フックポイント. 
    68         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    69         $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_before', array($this)); 
    7067 
    7168        // 会員管理クラス 
     
    9693                    if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    9794                        echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 
    98                         exit; 
     95                        SC_Response_Ex::actionExit(); 
    9996                    } else { 
    10097                        SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 
    101                         exit; 
     98                        SC_Response_Ex::actionExit(); 
    10299                    } 
    103100                } 
     
    144141                            if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 
    145142                                if (!$objCustomer->hasValue('email_mobile')) { 
    146                                     // フックポイント. 
    147                                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    148                                     $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_login_mobile', array($this)); 
    149143 
    150144                                    SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 
    151                                     exit; 
     145                                    SC_Response_Ex::actionExit(); 
    152146                                } 
    153147                            } 
     
    156150                        // --- ログインに成功した場合 
    157151                        if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    158                             // フックポイント. 
    159                             $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    160                             $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_login_smartphone', array($this)); 
    161152 
    162153                            echo SC_Utils_Ex::jsonEncode(array('success' => $_POST['url'])); 
    163154                        } else { 
    164                             // フックポイント. 
    165                             $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    166                             $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_login_pc', array($this)); 
    167155 
    168156                            SC_Response_Ex::sendRedirect($_POST['url']); 
    169157                        } 
    170                         exit; 
     158                        SC_Response_Ex::actionExit(); 
    171159                    } else { 
    172160                        // --- ログインに失敗した場合 
     
    179167                            if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    180168                                echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 
    181                                 exit; 
     169                                SC_Response_Ex::actionExit(); 
    182170                            } else { 
    183171                                SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 
    184                                 exit; 
     172                                SC_Response_Ex::actionExit(); 
    185173                            } 
    186174                        } else { 
    187175                            if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 
    188176                                echo $this->lfGetErrorMessage(SITE_LOGIN_ERROR); 
    189                                 exit; 
     177                                SC_Response_Ex::actionExit(); 
    190178                            } else { 
    191179                                SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 
    192                                 exit; 
     180                                SC_Response_Ex::actionExit(); 
    193181                            } 
    194182                        } 
     
    198186                    // 入力エラーの場合、元のアドレスに戻す。 
    199187                    SC_Response_Ex::sendRedirect($_POST['url']); 
    200                     exit; 
     188                    SC_Response_Ex::actionExit(); 
    201189                } 
    202190 
     
    210198                $mypage_url_search = strpos('.'.$_POST['url'], 'mypage'); 
    211199                if ($mypage_url_search == 2) { 
    212                     // フックポイント. 
    213                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    214                     $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_logout_mypage', array($this)); 
    215200 
    216201                    // マイページログイン中はログイン画面へ移行 
    217202                    SC_Response_Ex::sendRedirectFromUrlPath('mypage/login.php'); 
    218203                } else { 
    219                     // フックポイント. 
    220                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    221                     $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_logout_toppage', array($this)); 
    222204 
    223205                    // 上記以外の場合、トップへ遷移 
    224206                    SC_Response_Ex::sendRedirect(HTTP_URL); 
    225207                } 
    226                 exit; 
     208                SC_Response_Ex::actionExit(); 
    227209 
    228210                break; 
     
    230212                break; 
    231213        } 
    232         // フックポイント. 
    233         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    234         $objPlugin->doAction('LC_Page_FrontParts_LoginCheck_action_after', array($this)); 
     214 
    235215    } 
    236216 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php

    r21738 r21743  
    6363     */ 
    6464    function action() { 
    65         // フックポイント. 
    66         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    67         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Calafterar_action_before', array($this)); 
    6865 
    6966        // 休日取得取得 
     
    7471        $this->arrCalendar = $this->lfGetCalendar(2); 
    7572 
    76         // フックポイント. 
    77         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    78         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Calafterar_action_after', array($this)); 
     73 
    7974    } 
    8075 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php

    r21693 r21743  
    6464     */ 
    6565    function action() { 
    66         // フックポイント. 
    67         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    68         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Cart_action_before', array($this)); 
    6966 
    7067        $objCart = new SC_CartSession_Ex(); 
     
    7471        $this->arrCartList = array(0 => $this->lfGetCartData($objCart)); 
    7572 
    76         // フックポイント. 
    77         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    78         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Cart_action_after', array($this)); 
     73 
    7974    } 
    8075 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r21693 r21743  
    6262     */ 
    6363    function action() { 
    64         // フックポイント. 
    65         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    66         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Category_action_before', array($this)); 
    6764 
    6865        // モバイル判定 
     
    8077        } 
    8178 
    82         // フックポイント. 
    83         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    84         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Category_action_after', array($this)); 
     79 
    8580    } 
    8681 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php

    r21704 r21743  
    6565     */ 
    6666    function action() { 
    67         // フックポイント. 
    68         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    69         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Login_action_before', array($this)); 
    7067 
    7168        $objCustomer = new SC_Customer_Ex(); 
     
    9592        $this->transactionid = SC_Helper_Session_Ex::getToken(); 
    9693 
    97         // フックポイント. 
    98         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    99         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Login_action_after', array($this)); 
     94 
    10095    } 
    10196 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php

    r21693 r21743  
    6262     */ 
    6363    function action() { 
    64         // フックポイント. 
    65         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    66         $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_before', array($this)); 
    6764 
    6865        $objFormParam = new SC_FormParam_Ex(); 
     
    7471                $this->arrErr = $objFormParam->checkError(false); 
    7572                if (empty($this->arrErr)) { 
    76                     // フックポイント. 
    77                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    78                     $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_getList', array($this)); 
    7973 
    8074                    $json = $this->lfGetNewsForJson($objFormParam); 
    8175                    echo $json; 
    82                     exit; 
     76                    SC_Response_Ex::actionExit(); 
    8377                } else { 
    8478                    echo $this->lfGetErrors($this->arrErr); 
    85                     exit; 
     79                    SC_Response_Ex::actionExit(); 
    8680                } 
    8781                break; 
     
    9286                $this->arrErr = $objFormParam->checkError(false); 
    9387                if (empty($this->arrErr)) { 
    94                     // フックポイント. 
    95                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    96                     $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_getDetail', array($this)); 
    9788 
    9889                    $json = $this->lfGetNewsDetailForJson($objFormParam); 
    9990                    echo $json; 
    100                     exit; 
     91                    SC_Response_Ex::actionExit(); 
    10192                } else { 
    10293                    echo $this->lfGetErrors($this->arrErr); 
    103                     exit; 
     94                    SC_Response_Ex::actionExit(); 
    10495                } 
    10596                break; 
     
    109100                break; 
    110101        } 
    111         // フックポイント. 
    112         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    113         $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_after', array($this)); 
     102 
    114103    } 
    115104 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Recommend.php

    r21693 r21743  
    6262     */ 
    6363    function action() { 
    64         // フックポイント. 
    65         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    66         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Recommafter_action_before', array($this)); 
    6764 
    6865        // 基本情報を渡す 
     
    7370        $this->arrBestProducts = $this->lfGetRanking(); 
    7471 
    75         // フックポイント. 
    76         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    77         $objPlugin->doAction('LC_Page_FrontParts_Bloc_Recommafter_action_after', array($this)); 
     72 
    7873    } 
    7974 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php

    r21693 r21743  
    6262     */ 
    6363    function action() { 
    64         // フックポイント. 
    65         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    66         $objPlugin->doAction('LC_Page_FrontParts_Bloc_SearchProducts_action_before', array($this)); 
    6764 
    6865        // 商品ID取得 
     
    8178        $this->arrMakerList = $this->lfGetMakerList(); 
    8279 
    83         // フックポイント. 
    84         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    85         $objPlugin->doAction('LC_Page_FrontParts_Bloc_SearchProducts_action_after', array($this)); 
     80 
    8681    } 
    8782 
Note: See TracChangeset for help on using the changeset viewer.