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/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php

    r21693 r21743  
    6262     */ 
    6363    function action() { 
    64         // フックポイント. 
    65         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    66         $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_before', array($this)); 
    6764 
    6865        $objFormParam = new SC_FormParam_Ex(); 
     
    7471                $this->arrErr = $objFormParam->checkError(false); 
    7572                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)); 
    7973 
    8074                    $json = $this->lfGetNewsForJson($objFormParam); 
    8175                    echo $json; 
    82                     exit; 
     76                    SC_Response_Ex::actionExit(); 
    8377                } else { 
    8478                    echo $this->lfGetErrors($this->arrErr); 
    85                     exit; 
     79                    SC_Response_Ex::actionExit(); 
    8680                } 
    8781                break; 
     
    9286                $this->arrErr = $objFormParam->checkError(false); 
    9387                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)); 
    9788 
    9889                    $json = $this->lfGetNewsDetailForJson($objFormParam); 
    9990                    echo $json; 
    100                     exit; 
     91                    SC_Response_Ex::actionExit(); 
    10192                } else { 
    10293                    echo $this->lfGetErrors($this->arrErr); 
    103                     exit; 
     94                    SC_Response_Ex::actionExit(); 
    10495                } 
    10596                break; 
     
    109100                break; 
    110101        } 
    111         // フックポイント. 
    112         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    113         $objPlugin->doAction('LC_Page_FrontParts_Bloc_News_action_after', array($this)); 
     102 
    114103    } 
    115104 
Note: See TracChangeset for help on using the changeset viewer.