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/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 
Note: See TracChangeset for help on using the changeset viewer.