Changeset 19442
- Timestamp:
- 2010/11/07 02:58:59 (12 years ago)
- Location:
- branches/camp/camp-2_5-E/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_5-E/data/class/pages/admin/system/LC_Page_Admin_System_Plugin.php
r19441 r19442 85 85 if(count($arrPlugins) == 0){ 86 86 //新規インストール 87 88 $data = array( 89 'plugin_name' => $objForm->getValue('plugin_name'), 90 'path' => realpath(DATA_DIR.'/plugin/'.$objForm->getValue('plugin_name').'/'), 91 'enable' => '1', 92 'del_flg' => '0', 93 'class_name' => $objForm->getValue('plugin_name'), 87 $plugin->install(); 94 88 95 );96 89 $objQuery->insert("dtb_plugin", $data); 97 90 }else{ -
branches/camp/camp-2_5-E/data/plugin/testPlugin1/TestPlugin1.php
r19335 r19442 12 12 ; 13 13 } 14 14 15 15 function init(){ 16 16 17 17 } 18 18 … … 23 23 24 24 function getName(){ 25 return "TestPlugin1";25 return "TestPlugin1"; 26 26 } 27 27 28 28 function process(){ 29 29 30 30 } 31 31 … … 35 35 36 36 public function install(){ 37 37 $data = array( 38 'plugin_name' => $objForm->getValue('plugin_name'), 39 'path' => realpath(DATA_DIR.'/plugin/'.$objForm->getValue('plugin_name').'/'), 40 'enable' => '1', 41 'del_flg' => '0', 42 'class_name' => $objForm->getValue('plugin_name'), 43 'version' => $ 44 45 ); 46 38 47 } 39 48 40 49 public function uninstall(){ 41 50 42 51 } 43 52
Note: See TracChangeset
for help on using the changeset viewer.