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/products
Files:
6 edited

Legend:

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

    r21693 r21743  
    6262     */ 
    6363    function action() { 
    64         // フックポイント. 
    65         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    66         $objPlugin->doAction('LC_Page_Products_CategoryList_action_before', array($this)); 
    6764 
    6865        // カテゴリIDの正当性チェック 
     
    7673        $this->tpl_subtitle = $this->arrCategory['category_name']; 
    7774 
    78         // フックポイント. 
    79         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    80         $objPlugin->doAction('LC_Page_Products_CategoryList_action_after', array($this)); 
     75 
    8176    } 
    8277 
     
    168163        // 入力値の変換 
    169164        $objFormParam->convParam(); 
    170         return $objFormParam;         
     165        return $objFormParam; 
    171166    } 
    172167 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r21693 r21743  
    9292     */ 
    9393    function action() { 
    94         // フックポイント. 
    95         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    96         $objPlugin->doAction('LC_Page_Products_Detail_action_before', array($this)); 
    9794 
    9895        // 会員クラス 
     
    162159                    $objCartSess->addProduct($product_class_id, $this->objFormParam->getValue('quantity')); 
    163160 
    164                     // フックポイント. 
    165                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    166                     $objPlugin->doAction('LC_Page_Products_Detail_action_cart', array($this)); 
    167161 
    168162                    SC_Response_Ex::sendRedirect(CART_URLPATH); 
    169                     exit; 
     163                    SC_Response_Ex::actionExit(); 
    170164                } 
    171165                break; 
     
    176170                    if (count($this->arrErr) == 0) { 
    177171                        if (!$this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 
    178                             // フックポイント. 
     172 
    179173                            $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    180174                            $objPlugin->doAction('LC_Page_Products_Detail_action_add_favorite', array($this)); 
    181175 
    182                             exit; 
     176                            SC_Response_Ex::actionExit(); 
    183177                        } 
    184178                    } 
     
    192186                    if (count($this->arrErr) == 0) { 
    193187                        if ($this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 
    194                             // フックポイント. 
     188 
    195189                            $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    196190                            $objPlugin->doAction('LC_Page_Products_Detail_action_add_favorite_sphone', array($this)); 
    197191 
    198192                            print 'true'; 
    199                             exit; 
     193                            SC_Response_Ex::actionExit(); 
    200194                        } 
    201195                    } 
    202196                    print 'error'; 
    203                     exit; 
     197                    SC_Response_Ex::actionExit(); 
    204198                } 
    205199                break; 
     
    324318            $this->is_favorite = SC_Helper_DB_Ex::sfDataExists('dtb_customer_favorite_products', 'customer_id = ? AND product_id = ?', array($objCustomer->getValue('customer_id'), $product_id)); 
    325319        } 
    326         // フックポイント. 
    327         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    328         $objPlugin->doAction('LC_Page_Products_Detail_action_after', array($this)); 
     320 
    329321    } 
    330322 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_List.php

    r21693 r21743  
    9595     */ 
    9696    function action() { 
    97         // フックポイント. 
    98         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    99         $objPlugin->doAction('LC_Page_Products_List_action_before', array($this)); 
    10097 
    10198        $objProduct = new SC_Product_Ex(); 
     
    140137                    $this->arrProducts[$key]['main_list_image'] = SC_Utils_Ex::sfNoImageMainList($val['main_list_image']); 
    141138                } 
    142                 // フックポイント. 
    143                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    144                 $objPlugin->doAction('LC_Page_Products_List_action_json', array($this)); 
    145139 
    146140                echo SC_Utils_Ex::jsonEncode($this->arrProducts); 
    147                 exit; 
     141                SC_Response_Ex::actionExit(); 
    148142                break; 
    149143 
     
    198192                        $this->lfAddCart($this->arrForm, $_SERVER['HTTP_REFERER']); 
    199193 
    200                         // フックポイント. 
    201                         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    202                         $objPlugin->doAction('LC_Page_Products_List_action_cart', array($this)); 
    203194 
    204195                        SC_Response_Ex::sendRedirect(CART_URLPATH); 
    205                         exit; 
     196                        SC_Response_Ex::actionExit(); 
    206197                    } 
    207198                    $js_fnOnLoad .= $this->lfSetSelectedData($this->arrProducts, $this->arrForm, $arrErr, $target_product_id); 
     
    220211        $this->tpl_rnd          = SC_Utils_Ex::sfGetRandomString(3); 
    221212 
    222         // フックポイント. 
    223         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    224         $objPlugin->doAction('LC_Page_Products_List_action_after', array($this)); 
     213 
    225214    } 
    226215 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Review.php

    r21693 r21743  
    7979     */ 
    8080    function action() { 
    81         // フックポイント. 
    82         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    83         $objPlugin->doAction('LC_Page_Products_Review_action_before', array($this)); 
    8481 
    8582        $objFormParam = new SC_FormParam_Ex(); 
     
    109106                    $this->lfRegistRecommendData($objFormParam); 
    110107 
    111                     // フックポイント. 
    112                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    113                     $objPlugin->doAction('LC_Page_Products_Review_action_complete', array($this)); 
    114108 
    115109                    //レビュー書き込み完了ページへ 
    116110                    SC_Response_Ex::sendRedirect('review_complete.php'); 
    117                     exit; 
     111                    SC_Response_Ex::actionExit(); 
    118112                } 
    119113                break; 
     
    135129        $this->setTemplate($this->tpl_mainpage); 
    136130 
    137         // フックポイント. 
    138         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    139         $objPlugin->doAction('LC_Page_Products_Review_action_after', array($this)); 
     131 
    140132    } 
    141133 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_ReviewComplete.php

    r21693 r21743  
    6363     */ 
    6464    function action() { 
    65         // フックポイント. 
    66         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    67         $objPlugin->doAction('LC_Page_Products_ReviewComplete_action_before', array($this)); 
    6865 
    6966        $this->setTemplate('products/review_complete.tpl'); 
    7067 
    71         // フックポイント. 
    72         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    73         $objPlugin->doAction('LC_Page_Products_ReviewComplete_action_after', array($this)); 
     68 
    7469    } 
    7570 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Search.php

    r21693 r21743  
    6363     */ 
    6464    function action() { 
    65         // フックポイント. 
    66         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    67         $objPlugin->doAction('LC_Page_Products_Search_action_before', array($this)); 
    6865 
    69         // フックポイント. 
    70         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    71         $objPlugin->doAction('LC_Page_Products_Search_action_after', array($this)); 
     66 
    7267    } 
    7368 
Note: See TracChangeset for help on using the changeset viewer.