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