Ignore:
Timestamp:
2012/03/06 20:11:36 (12 years ago)
Author:
h_yoshimoto
Message:

#1687 プラグイン機能(フックポイント:フロント画面)を実装

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

    r21527 r21594  
    6565     */ 
    6666    function action() { 
     67        // フックポイント. 
     68        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     69        $objPlugin->doAction('lc_page_frontparts_logincheck_action_start', array($this)); 
     70         
    6771        // 会員管理クラス 
    6872        $objCustomer = new SC_Customer_Ex(); 
     
    140144                            if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 
    141145                                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)); 
     149                                     
    142150                                    SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 
    143151                                    exit; 
     
    145153                            } 
    146154                        } 
    147  
     155                         
    148156                        // --- ログインに成功した場合 
    149157                        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)); 
     161                             
    150162                            echo SC_Utils_Ex::jsonEncode(array('success' => $_POST['url'])); 
    151163                        } 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)); 
     167                             
    152168                            SC_Response_Ex::sendRedirect($_POST['url']); 
    153169                        } 
     
    194210                $mypage_url_search = strpos('.'.$_POST['url'], 'mypage'); 
    195211                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)); 
     215                     
    196216                    // マイページログイン中はログイン画面へ移行 
    197217                    SC_Response_Ex::sendRedirectFromUrlPath('mypage/login.php'); 
    198218                } 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)); 
     222                     
    199223                    // 上記以外の場合、トップへ遷移 
    200224                    SC_Response_Ex::sendRedirect(HTTP_URL); 
     
    206230                break; 
    207231        } 
    208  
     232        // フックポイント. 
     233        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     234        $objPlugin->doAction('lc_page_frontparts_logincheck_action_end', array($this)); 
    209235    } 
    210236 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php

    r21490 r21594  
    6363     */ 
    6464    function action() { 
     65        // フックポイント. 
     66        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     67        $objPlugin->doAction('lc_page_frontparts_bloc_calendar_action_start', array($this)); 
     68         
    6569        // 休日取得取得 
    6670        $this->arrHoliday = $this->lfGetHoliday(); 
     
    6973        // カレンダーデータ取得 
    7074        $this->arrCalendar = $this->lfGetCalendar(2); 
     75         
     76        // フックポイント. 
     77        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     78        $objPlugin->doAction('lc_page_frontparts_bloc_calendar_action_end', array($this)); 
    7179    } 
    7280 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php

    r21581 r21594  
    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_start', array($this)); 
     69         
    6670        $objCart = new SC_CartSession_Ex(); 
    6771        $this->isMultiple = $objCart->isMultiple(); 
     
    6973        // 旧仕様との互換のため、不自然なセットとなっている 
    7074        $this->arrCartList = array(0 => $this->lfGetCartData($objCart)); 
     75         
     76        // フックポイント. 
     77        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     78        $objPlugin->doAction('lc_page_frontparts_bloc_cart_action_end', array($this)); 
    7179    } 
    7280 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r21442 r21594  
    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_start', array($this)); 
     67         
    6468        // モバイル判定 
    6569        switch (SC_Display_Ex::detectDevice()) { 
     
    7579                break; 
    7680        } 
     81         
     82        // フックポイント. 
     83        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     84        $objPlugin->doAction('lc_page_frontparts_bloc_category_action_end', array($this)); 
    7785    } 
    7886 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php

    r21527 r21594  
    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_start', array($this)); 
     70         
    6771        $objCustomer = new SC_Customer_Ex(); 
    6872        // クッキー管理クラス 
     
    9094        //スマートフォン版ログアウト処理で不正なページ移動エラーを防ぐ為、トークンをセット 
    9195        $this->transactionid = SC_Helper_Session_Ex::getToken(); 
     96         
     97        // フックポイント. 
     98        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     99        $objPlugin->doAction('lc_page_frontparts_bloc_login_action_end', array($this)); 
    92100    } 
    93101 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php

    r21527 r21594  
    6262     */ 
    6363    function action() { 
    64  
     64        // フックポイント. 
     65        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     66        $objPlugin->doAction('lc_page_frontparts_bloc_news_action_start', array($this)); 
     67         
    6568        $objFormParam = new SC_FormParam_Ex(); 
    6669        switch ($this->getMode()) { 
     
    7174                $this->arrErr = $objFormParam->checkError(false); 
    7275                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)); 
     79                     
    7380                    $json = $this->lfGetNewsForJson($objFormParam); 
    7481                    echo $json; 
     
    8592                $this->arrErr = $objFormParam->checkError(false); 
    8693                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)); 
     97                     
    8798                    $json = $this->lfGetNewsDetailForJson($objFormParam); 
    8899                    echo $json; 
     
    98109                break; 
    99110        } 
     111        // フックポイント. 
     112        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     113        $objPlugin->doAction('lc_page_frontparts_bloc_news_action_end', array($this)); 
    100114    } 
    101115 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Recommend.php

    r21479 r21594  
    6262     */ 
    6363    function action() { 
    64  
     64        // フックポイント. 
     65        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     66        $objPlugin->doAction('lc_page_frontparts_bloc_recommend_action_start', array($this)); 
     67         
    6568        // 基本情報を渡す 
    6669        $objSiteInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
     
    6972        //おすすめ商品表示 
    7073        $this->arrBestProducts = $this->lfGetRanking(); 
     74         
     75        // フックポイント. 
     76        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     77        $objPlugin->doAction('lc_page_frontparts_bloc_recommend_action_end', array($this)); 
    7178    } 
    7279 
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php

    r21514 r21594  
    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_start', array($this)); 
     67         
    6468        // 商品ID取得 
    6569        $product_id = $this -> lfGetProductId(); 
     
    7680        // メーカー検索用選択リスト 
    7781        $this->arrMakerList = $this->lfGetMakerList(); 
     82         
     83        // フックポイント. 
     84        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     85        $objPlugin->doAction('lc_page_frontparts_bloc_searchproducts_action_end', array($this)); 
    7886    } 
    7987 
Note: See TracChangeset for help on using the changeset viewer.