Ignore:
Timestamp:
2012/04/27 12:17:09 (12 years ago)
Author:
adachi
Message:

#1782 plugin_infoフォーマット対応, フックポイントの自動登録対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/plugin/SC_Plugin_Util.php

    r21750 r21794  
    3939        } 
    4040        $arrRet = $objQuery->select($col,$table,$where); 
     41         
     42        // プラグインフックポイントを取得. 
     43        $max = count($arrRet); 
     44        for ($i = 0; $i < $max; $i++) { 
     45            $plugin_id = $arrRet[$i]['plugin_id']; 
     46            $arrHookPoint = SC_Plugin_Util::getPluginHookPoint($plugin_id); 
     47            $arrRet[$i]['plugin_hook_point'] = $arrHookPoint; 
     48        } 
    4149        return $arrRet; 
    4250    } 
     
    121129        return $arrPluginDirectory; 
    122130    } 
     131     
     132    /** 
     133     * プラグインIDをキーに, プラグインフックポイントを取得する. 
     134     * 
     135     * @param integer $plugin_id 
     136     * @return array フックポイントの一覧 
     137     */ 
     138    function getPluginHookPoint($plugin_id) { 
     139        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     140        $cols = '*'; 
     141        $from = 'dtb_plugin_hookpoint'; 
     142        $where = 'plugin_id = ?'; 
     143        return $objQuery->select($cols, $from, $where, array($plugin_id)); 
     144    } 
    123145} 
Note: See TracChangeset for help on using the changeset viewer.