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/LC_Page.php

    r21716 r21743  
    107107        $this->doValidToken(); 
    108108        $this->setTokenTo(); 
     109 
     110        // ローカルフックポイントを実行 
     111        $parent_class_name = get_parent_class($this); 
     112        if ($parent_class_name != 'LC_Page') { 
     113            $objPlugin->doAction($parent_class_name . '_action_before', array($this)); 
     114        } 
     115        $class_name = get_class($this); 
     116        if ($parent_class_name != 'LC_Page' && $class_name != $parent_class_name) { 
     117            $objPlugin->doAction($class_name . '_action_before', array($this)); 
     118        } 
    109119    } 
    110120 
     
    122132     */ 
    123133    function sendResponse() { 
     134        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
     135        // ローカルフックポイントを実行 
     136        $parent_class_name = get_parent_class($this); 
     137        if ($parent_class_name != 'LC_Page') { 
     138            $objPlugin->doAction($parent_class_name . '_action_after', array($this)); 
     139        } 
     140        $class_name = get_class($this); 
     141        if ($parent_class_name != 'LC_Page' && $class_name != $parent_class_name) { 
     142            $objPlugin->doAction($class_name . '_action_after', array($this)); 
     143        } 
    124144 
    125145        // HeadNaviにpluginテンプレートを追加する. 
    126         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    127146        $objPlugin->setHeadNaviBlocs($this->arrPageLayout['HeadNavi']); 
    128147 
     
    155174        $this->objDisplay->response->body = $data; 
    156175        $this->objDisplay->response->write(); 
    157         exit; 
     176        SC_Response_Ex::actionExit(); 
    158177    } 
    159178 
     
    179198    /** 
    180199     * テンプレート取得 
    181      *  
     200     * 
    182201     */ 
    183202    function getTemplate() { 
     
    187206    /** 
    188207     * テンプレート設定(ポップアップなどの場合) 
    189      *  
     208     * 
    190209     */ 
    191210    function setTemplate($template) { 
     
    364383                    SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 
    365384                } 
    366                 exit; 
     385                SC_Response_Ex::actionExit(); 
    367386            } 
    368387        } 
Note: See TracChangeset for help on using the changeset viewer.