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

Legend:

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

    r21514 r21594  
    6262     */ 
    6363    function action() { 
     64        // フックポイント. 
     65        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     66        $objPlugin->doAction('lc_page_products_categorylist_action_start', array($this)); 
     67         
    6468        // カテゴリIDの正当性チェック 
    6569        $this->lfCheckCategoryId(); 
     
    7175        $this->arrChildren = $arrCategoryData['arrChildren']; 
    7276        $this->tpl_subtitle = $this->arrCategory['category_name']; 
     77         
     78        // フックポイント. 
     79        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     80        $objPlugin->doAction('lc_page_products_categorylist_action_end', array($this)); 
    7381    } 
    7482 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r21563 r21594  
    9292     */ 
    9393    function action() { 
     94        // フックポイント. 
     95        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     96        $objPlugin->doAction('lc_page_products_detail_action_start', array($this)); 
     97         
    9498        // 会員クラス 
    9599        $objCustomer = new SC_Customer_Ex(); 
     
    157161 
    158162                    $objCartSess->addProduct($product_class_id, $this->objFormParam->getValue('quantity')); 
     163                     
     164                    // フックポイント. 
     165                    $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     166                    $objPlugin->doAction('lc_page_products_detail_action_cart', array($this)); 
    159167 
    160168                    SC_Response_Ex::sendRedirect(CART_URLPATH); 
     
    168176                    if (count($this->arrErr) == 0) { 
    169177                        if (!$this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 
     178                            // フックポイント. 
     179                            $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     180                            $objPlugin->doAction('lc_page_products_detail_action_add_favorite', array($this)); 
     181                             
    170182                            exit; 
    171183                        } 
     
    180192                    if (count($this->arrErr) == 0) { 
    181193                        if ($this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 
     194                            // フックポイント. 
     195                            $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     196                            $objPlugin->doAction('lc_page_products_detail_action_add_favorite_sphone', array($this)); 
     197                             
    182198                            print 'true'; 
    183199                            exit; 
     
    308324            $this->is_favorite = SC_Helper_DB_Ex::sfDataExists('dtb_customer_favorite_products', 'customer_id = ? AND product_id = ?', array($objCustomer->getValue('customer_id'), $product_id)); 
    309325        } 
    310  
     326        // フックポイント. 
     327        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     328        $objPlugin->doAction('lc_page_products_detail_action_end', array($this)); 
    311329    } 
    312330 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_List.php

    r21563 r21594  
    9595     */ 
    9696    function action() { 
    97         $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
     97        // フックポイント. 
     98        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     99        $objPlugin->doAction('lc_page_products_list_action_start', array($this)); 
     100         
    98101        $objProduct = new SC_Product_Ex(); 
    99102 
     
    137140                    $this->arrProducts[$key]['main_list_image'] = SC_Utils_Ex::sfNoImageMainList($val['main_list_image']); 
    138141                } 
    139  
     142                // フックポイント. 
     143                $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     144                $objPlugin->doAction('lc_page_products_list_action_json', array($this)); 
     145                 
    140146                echo SC_Utils_Ex::jsonEncode($this->arrProducts); 
    141147                exit; 
     
    191197                    if (empty($arrErr)) { 
    192198                        $this->lfAddCart($this->arrForm, $_SERVER['HTTP_REFERER']); 
     199                         
     200                        // フックポイント. 
     201                        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     202                        $objPlugin->doAction('lc_page_products_list_action_cart', array($this)); 
     203                         
    193204                        SC_Response_Ex::sendRedirect(CART_URLPATH); 
    194205                        exit; 
     
    211222 
    212223        $this->tpl_rnd          = SC_Utils_Ex::sfGetRandomString(3); 
    213  
     224         
     225        // フックポイント. 
     226        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     227        $objPlugin->doAction('lc_page_products_list_action_end', array($this)); 
    214228    } 
    215229 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Review.php

    r21526 r21594  
    7979     */ 
    8080    function action() { 
     81        // フックポイント. 
     82        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     83        $objPlugin->doAction('lc_page_products_review_action_start', array($this)); 
     84         
    8185        $objFormParam = new SC_FormParam_Ex(); 
    8286        $this->lfInitParam($objFormParam); 
     
    104108                    //登録実行 
    105109                    $this->lfRegistRecommendData($objFormParam); 
     110                     
     111                    // フックポイント. 
     112                    $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     113                    $objPlugin->doAction('lc_page_products_review_action_complete', array($this)); 
    106114 
    107115                    //レビュー書き込み完了ページへ 
     
    126134 
    127135        $this->setTemplate($this->tpl_mainpage); 
     136         
     137        // フックポイント. 
     138        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     139        $objPlugin->doAction('lc_page_products_review_action_end', array($this)); 
    128140    } 
    129141 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_ReviewComplete.php

    r21420 r21594  
    6363     */ 
    6464    function action() { 
     65        // フックポイント. 
     66        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     67        $objPlugin->doAction('lc_page_products_reviewcomplete_action_start', array($this)); 
     68         
    6569        $this->setTemplate('products/review_complete.tpl'); 
     70         
     71        // フックポイント. 
     72        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     73        $objPlugin->doAction('lc_page_products_reviewcomplete_action_end', array($this)); 
    6674    } 
    6775 
  • branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Search.php

    r21420 r21594  
    6363     */ 
    6464    function action() { 
     65        // フックポイント. 
     66        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     67        $objPlugin->doAction('lc_page_products_search_action_start', array($this)); 
     68         
     69        // フックポイント. 
     70        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     71        $objPlugin->doAction('lc_page_products_search_action_end', array($this)); 
    6572    } 
    6673 
Note: See TracChangeset for help on using the changeset viewer.