Ignore:
Timestamp:
2013/03/09 16:51:28 (8 years ago)
Author:
Yammy
Message:

プラグインフックポイント管理機能

refs #2179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_13-plugin/data/class/plugin/SC_Plugin_Util.php

    r22567 r22629  
    148148        $cols = '*'; 
    149149        $from = 'dtb_plugin_hookpoint'; 
    150         $where = 'plugin_id = ?'; 
     150        $where = 'plugin_id = ? AND use_flg = true'; 
    151151        return $objQuery->select($cols, $from, $where, array($plugin_id)); 
     152    } 
     153 
     154    function getPluginHookPointList() 
     155    { 
     156        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     157        $objQuery->setOrder('priority DESC'); 
     158        $cols = 'dtb_plugin_hookpoint.*, dtb_plugin.priority, dtb_plugin.plugin_name'; 
     159        $from = 'dtb_plugin_hookpoint LEFT JOIN dtb_plugin USING(plugin_id)'; 
     160        $arrRet = $objQuery->select($cols, $from); 
     161        $arrList = array(); 
     162        foreach ($arrRet AS $key=>$val) { 
     163            $arrList[$val['plugin_hookpoint_id']][$val['plugin_id']] = $val; 
     164        } 
     165        return $arrList; 
    152166    } 
    153167 
Note: See TracChangeset for help on using the changeset viewer.