Changeset 22629


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

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

refs #2179

Location:
branches/camp/camp-2_13-plugin
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_13-plugin/data/Smarty/templates/admin/ownersstore/subnavi.tpl

    r22206 r22629  
    2626    <li id="navi-ownersstore-index" class="<!--{if $tpl_subno == 'index'}-->on<!--{/if}-->"> 
    2727        <a href="<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->ownersstore/<!--{$smarty.const.DIR_INDEX_PATH}-->"><span>プラグイン管理</span></a></li> 
     28    <li id="navi-ownersstore-plugin-hookpoint-list" class="<!--{if $tpl_subno == 'plugin-hookpoint-list'}-->on<!--{/if}-->"> 
     29        <a href="<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->ownersstore/plugin_hookpoint_list.php"><span>プラグインフックポイント管理</span></a></li> 
    2830    <li id="navi-ownersstore-module" class="<!--{if $tpl_subno == 'module'}-->on<!--{/if}-->"> 
    2931        <a href="<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->ownersstore/module.php"><span>モジュール管理</span></a></li> 
  • 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 
  • branches/camp/camp-2_13-plugin/html/install/sql/create_table_mysql.sql

    r22218 r22629  
    11661166    hook_point text NOT NULL, 
    11671167    callback text, 
     1168    use_flg text booelan NOT NULL DEFAULT true, 
    11681169    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    11691170    update_date timestamp NOT NULL, 
  • branches/camp/camp-2_13-plugin/html/install/sql/create_table_pgsql.sql

    r22218 r22629  
    11661166    hook_point text NOT NULL, 
    11671167    callback text, 
     1168    use_flg text booelan NOT NULL DEFAULT true, 
    11681169    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
    11691170    update_date timestamp NOT NULL, 
Note: See TracChangeset for help on using the changeset viewer.