Ignore:
Timestamp:
2012/07/04 09:16:44 (12 years ago)
Author:
pineray
Message:

フックポイントのセットを簡便にするための関数を作成.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Plugin.php

    r21941 r21955  
    253253        } 
    254254    } 
     255 
     256    /** 
     257     * Utility function to set a hook point. 
     258     * 
     259     * @param type $hook_point  hook point 
     260     * @param type $arrArgs     argument passing to callback function 
     261     * @param type $plugin_activate_flg  
     262     */ 
     263    public static function hook($hook_point, $arrArgs = array(), $plugin_activate_flg = PLUGIN_ACTIVATE_FLAG) { 
     264        $objPlugin = SC_Helper_Plugin::getSingletonInstance($plugin_activate_flg); 
     265        $objPlugin->doAction($hook_point, $arrArgs); 
     266    } 
    255267} 
Note: See TracChangeset for help on using the changeset viewer.