mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
virtual site + homepage package 추가. 아직 미완성 버전이므로 서비스 반영하지 말아주세요. 테스트중
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4871 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c5dbc3405c
commit
e745b70268
171 changed files with 5243 additions and 274 deletions
|
|
@ -199,13 +199,7 @@
|
|||
* 모든 module의 schemas 디렉토리를 확인하여 schema xml을 이용, 테이블 생성
|
||||
**/
|
||||
function installDownloadedModule() {
|
||||
// 수동으로 설치를 할 목록
|
||||
$manual_modules = array('install','module','member');
|
||||
|
||||
// install, module 모듈은 미리 설치
|
||||
$this->installModule('install', './modules/install/');
|
||||
$this->installModule('module', './modules/module/');
|
||||
$this->installModule('member', './modules/member/');
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
// 각 모듈의 schemas/*.xml 파일을 모두 찾아서 table 생성
|
||||
$module_list = FileHandler::readDir('./modules/', NULL, false, true);
|
||||
|
|
@ -214,10 +208,21 @@
|
|||
$tmp_arr = explode('/',$module_path);
|
||||
$module = $tmp_arr[count($tmp_arr)-1];
|
||||
|
||||
// 미리 수동으로 설치한 모듈이면 패스~
|
||||
if(in_array($module, $manual_modules)) continue;
|
||||
$xml_info = $oModuleModel->getModuleInfoXml($module);
|
||||
if(!$xml_info) continue;
|
||||
$modules[$xml_info->category][] = $module;
|
||||
}
|
||||
|
||||
$this->installModule($module, $module_path);
|
||||
// 모듈을 category에 의거 설치 순서를 정함
|
||||
$install_step = array('base','utility','manager','accessory','service','package');
|
||||
|
||||
foreach($install_step as $category) {
|
||||
foreach($modules[$category] as $module) {
|
||||
$this->installModule($module, sprintf('./modules/%s', $module));
|
||||
|
||||
$oModule = &getClass($module);
|
||||
if($oModule->checkUpdate()) $oModule->moduleUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
return new Object();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue