Changeset 22646
- Timestamp:
- 2013/03/09 21:40:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_13-plugin/data/class/plugin/SC_Plugin_Installer.php
r22633 r22646 31 31 } 32 32 33 /**34 *35 */36 33 function execInstall() { 37 34 38 35 GC_Utils_Ex::gfPrintLog("start install"); 36 37 // ファイルコピーの事前チェック? 39 38 40 39 $objQuery =& SC_Query::getSingletonInstance(); … … 48 47 $objQuery->query($sql['sql'], $sql['params']); 49 48 } 50 49 50 // プラグインのディレクトリコピー 51 $arrCopyDirectories = $this->arrInstallData["plugin_code"]['copy_directory']; 52 53 foreach ($arrCopyDirectories as $directory) { 54 // ディレクトリコピー -> HTML配下とDATA配下を別関数にする 55 // SC_Utils::copyDirectory(PLUGIN_UPLOAD_REALDIR . $arrPlugin['plugin_code'] . "/" . $directory, PLUGIN_HTML_REALDIR . $arrPlugin['plugin_code'] . "/" . $directory); 56 } 57 51 58 // プラグインのファイルコピー 52 59 $arrCopyFiles = $this->arrInstallData["plugin_code"]['copy_file']; 53 60 54 61 foreach ($arrCopyFiles as $file) { 55 62 // ファイルコピー 63 copy(PLUGIN_UPLOAD_REALDIR . $arrPlugin['plugin_code'] . "/" . $file['src'], PLUGIN_HTML_REALDIR . $arrPlugin['plugin_code'] . "/" . $file['dist']); 56 64 } 57 65 58 66 $objQuery->commit(); 59 67 GC_Utils_Ex::gfPrintLog("end install"); 60 }61 62 63 function copyFile($src, $dist) {64 68 65 69 } 66 70 71 function copyFile($src, $dist) { 72 $this->arrInstallData["plugin_code"]['copy_file'] = array( 73 'src' => $src, 74 'dist' => $dist 75 ); 76 } 77 78 function copyDirectory($src, $dist) { 79 $this->arrInstallData["plugin_code"]['copy_directory'] = array( 80 'src' => $src, 81 'dist' => $dist 82 ); 83 } 84 67 85 function removeFile($dist) { 68 86
Note: See TracChangeset
for help on using the changeset viewer.