Changeset 22978 for branches/version-2_13-dev/data/class/pages/admin
- Timestamp:
- 2013/07/20 16:21:44 (13 years ago)
- Location:
- branches/version-2_13-dev/data/class/pages/admin
- Files:
-
- 2 edited
- 1 copied
-
ownersstore/LC_Page_Admin_OwnersStore.php (modified) (5 diffs)
-
ownersstore/LC_Page_Admin_OwnersStore_PluginHookPointList.php (copied) (copied from branches/camp/camp-2_13-plugin/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_PluginHookPointList.php)
-
system/LC_Page_Admin_System_Log.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore.php
r22926 r22978 201 201 if ($plugins[$key]['enable'] === PLUGIN_ENABLE_TRUE) { 202 202 // 競合するプラグインがあるかを判定. 203 $plugins[$key]['conflict_message']= $this->checkConflictPlugin($plugin['plugin_id']); 203 //$plugins[$key]['conflict_message']= $this->checkConflictPlugin($plugin['plugin_id']); 204 $plugins[$key]['conflict_message'] = SC_Plugin_Util_Ex::checkConflictPlugin($plugin['plugin_id']); 204 205 } 205 206 } … … 340 341 function installPlugin($archive_file_name, $key) 341 342 { 343 $objQuery =& SC_Query_Ex::getSingletonInstance(); 344 $objQuery->begin(); 345 342 346 // 一時展開ディレクトリにファイルがある場合は事前に削除. 343 347 $arrFileHash = SC_Helper_FileManager_Ex::sfGetFileList(DOWNLOADS_TEMP_PLUGIN_INSTALL_DIR); … … 412 416 $arrErr = $this->execPlugin($plugin, $plugin['class_name'], 'install'); 413 417 if ($this->isError($arrErr) === true) { 418 // エラー時, transactionがabortしてるのでロールバック 419 $objQuery->rollback(); 414 420 $this->rollBack(DOWNLOADS_TEMP_PLUGIN_INSTALL_DIR, $plugin['plugin_id'], $plugin_html_dir_path); 415 421 return $arrErr; 416 422 } 417 423 424 $objQuery->commit(); 425 418 426 // 不要なファイルの削除 419 427 SC_Helper_FileManager_Ex::deleteFile(DOWNLOADS_TEMP_PLUGIN_INSTALL_DIR, false); … … 755 763 // プラグイン情報をDB登録. 756 764 $objQuery =& SC_Query_Ex::getSingletonInstance(); 757 $objQuery->begin();758 765 $arr_sqlval_plugin = array(); 759 766 $plugin_id = $objQuery->nextVal('dtb_plugin_plugin_id'); … … 847 854 function execPlugin($obj, $class_name, $exec_func) 848 855 { 856 $objPluginInstaller = new SC_Plugin_Installer($exec_func, $obj); 857 849 858 $arrErr = array(); 850 859 if (method_exists($class_name, $exec_func) === true) { 851 $ret = call_user_func(array($class_name, $exec_func), $obj); 860 $ret = call_user_func_array( 861 array($class_name, $exec_func), 862 array($obj, $objPluginInstaller)); 852 863 if (!(is_null($ret) || $ret === true)) { 853 864 $arrErr[$obj['plugin_code']] = $ret; 854 865 } 866 $arrInstallErr = $objPluginInstaller->execPlugin(); 867 if ($arrInstallErr) { 868 $arrErr['plugin_file'] = "プラグインのインストールにしっぱいしました.<br/>"; 869 } 855 870 } else { 856 $arrErr['plugin_ error'] = '※ ' . $class_name . '.php に' . $exec_func . 'が見つかりません。<br/>';857 } 858 871 $arrErr['plugin_file'] = '※ ' . $class_name . '.php に' . $exec_func . 'が見つかりません。<br/>'; 872 } 873 859 874 return $arrErr; 860 875 } -
branches/version-2_13-dev/data/class/pages/admin/system/LC_Page_Admin_System_Log.php
r22926 r22978 188 188 $this->arrLogList['DB'] = 'DBログファイル'; 189 189 } 190 if (defined('PLUGIN_LOG_REALFILE') && strlen(PLUGIN_LOG_REALFILE) >= 1) { 191 $this->arrLogList['PLUGIN'] = 'プラグインログファイル'; 192 } 190 193 } 191 194 }
Note: See TracChangeset
for help on using the changeset viewer.
