- Timestamp:
- 2012/04/27 12:17:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/plugin/SC_Plugin_Util.php
r21750 r21794 39 39 } 40 40 $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 } 41 49 return $arrRet; 42 50 } … … 121 129 return $arrPluginDirectory; 122 130 } 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 } 123 145 }
Note: See TracChangeset
for help on using the changeset viewer.