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/admin/design/LC_Page_Admin_Design.php

    r21693 r21743  
    7070     */ 
    7171    function action() { 
    72         // フックポイント. 
    73         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    74         $objPlugin->doAction('LC_Page_Admin_Design_action_before', array($this)); 
    7572 
    7673        $objLayout = new SC_Helper_PageLayout_Ex(); 
     
    8582            // 新規ブロック作成 
    8683            case 'new_bloc': 
    87                 // フックポイント. 
    88                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    89                 $objPlugin->doAction('LC_Page_Admin_Design_action_new_bloc', array($this)); 
    9084 
    9185                SC_Response_Ex::sendRedirect('bloc.php', array('device_type_id' => $this->device_type_id)); 
    92                 exit; 
     86                SC_Response_Ex::actionExit(); 
    9387                break; 
    9488 
    9589            // 新規ページ作成 
    9690            case 'new_page': 
    97                 // フックポイント. 
    98                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    99                 $objPlugin->doAction('LC_Page_Admin_Design_action_new_page', array($this)); 
    10091 
    10192                SC_Response_Ex::sendRedirect('main_edit.php', array('device_type_id' => $this->device_type_id)); 
    102                 exit; 
     93                SC_Response_Ex::actionExit(); 
    10394                break; 
    10495 
     
    109100                $_SESSION['preview'] = 'ON'; 
    110101 
    111                 // フックポイント. 
    112                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    113                 $objPlugin->doAction('LC_Page_Admin_Design_action_preview', array($this)); 
    114  
    115102                SC_Response_Ex::sendRedirectFromUrlPath('preview/' . DIR_INDEX_PATH, array('filename' => $filename)); 
    116                 exit; 
     103                SC_Response_Ex::actionExit(); 
    117104 
    118105            // 編集実行 
     
    121108                $arrQueryString = array('device_type_id' => $this->device_type_id, 'page_id' => $this->page_id, 'msg' => 'on'); 
    122109 
    123                 // フックポイント. 
    124                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    125                 $objPlugin->doAction('LC_Page_Admin_Design_action_confirm', array($this)); 
    126  
    127110                SC_Response_Ex::reload($arrQueryString, true); 
    128                 exit; 
     111                SC_Response_Ex::actionExit(); 
    129112 
    130113                break; 
     
    136119                    $objLayout->lfDelPageData($this->page_id, $this->device_type_id); 
    137120 
    138                     // フックポイント. 
    139                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    140                     $objPlugin->doAction('LC_Page_Admin_Design_action_delete', array($this)); 
    141  
    142121                    SC_Response_Ex::reload(array('device_type_id' => $this->device_type_id), true); 
    143                     exit; 
     122                    SC_Response_Ex::actionExit(); 
    144123                } 
    145124                break; 
     
    162141        $this->tpl_subtitle = $this->arrDeviceType[$this->device_type_id] . '>' . $this->tpl_subtitle; 
    163142 
    164         // フックポイント. 
    165         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    166         $objPlugin->doAction('LC_Page_Admin_Design_action_after', array($this)); 
    167143    } 
    168144 
Note: See TracChangeset for help on using the changeset viewer.