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/products/LC_Page_Admin_Products_Maker.php

    r21697 r21743  
    6767     */ 
    6868    function action() { 
    69         // フックポイント. 
    70         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    71         $objPlugin->doAction('LC_Page_Admin_Products_Maker_action_before', array($this)); 
    7269 
    7370        $objFormParam = new SC_FormParam_Ex(); 
     
    105102                        $this->lfUpdate($this->arrForm); 
    106103                    } 
    107                      // フックポイント. 
    108                     $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    109                     $objPlugin->doAction('LC_Page_Admin_Products_Maker_action_edit', array($this)); 
    110104 
    111105                    // 再表示 
     
    127121            case 'down': 
    128122                $this->lfRankChange($this->arrForm['maker_id'], $this->getMode()); 
    129                 // フックポイント. 
    130                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    131                 $objPlugin->doAction('LC_Page_Admin_Products_Maker_action_down', array($this)); 
    132123 
    133124                // リロード 
     
    138129            case 'delete': 
    139130                $this->lfDelete($this->arrForm['maker_id']); 
    140                 // フックポイント. 
    141                 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    142                 $objPlugin->doAction('LC_Page_Admin_Products_Maker_action_delete', array($this)); 
    143131 
    144132                // リロード 
     
    155143        $this->tpl_maker_id = $maker_id; 
    156144 
    157         // フックポイント. 
    158         $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    159         $objPlugin->doAction('LC_Page_Admin_Products_Maker_action_after', array($this)); 
    160145    } 
    161146 
     
    305290        if (!empty($arrForm['maker_id'])) { 
    306291            $objDb = new SC_Helper_DB_Ex(); 
    307             if (!SC_Utils_Ex::sfIsInt($arrForm['maker_id'])  
     292            if (!SC_Utils_Ex::sfIsInt($arrForm['maker_id']) 
    308293                || SC_Utils_Ex::sfIsZeroFilling($arrForm['maker_id']) 
    309294                || !$objDb->sfIsRecord('dtb_maker', 'maker_id', array($arrForm['maker_id'])) 
Note: See TracChangeset for help on using the changeset viewer.