git-svn-id: http://xe-core.googlecode.com/svn/trunk@652 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-26 06:14:02 +00:00
parent 19f925f0e0
commit d703b6d15a
6 changed files with 103 additions and 25 deletions

View file

@ -11,6 +11,9 @@
* @brief 설치시 추가 작업이 필요할시 구현
**/
function moduleInstall() {
// 에디터 모듈에서 사용할 디렉토리 생성
FileHandler::makeDir('./files/cache/editor');
return new Object();
}
@ -27,22 +30,5 @@
function moduleUpdate() {
return new Object();
}
/**
* @brief component의 객체 생성
**/
function getComponentObject($component, $upload_target_srl = 0) {
// 해당 컴포넌트의 객체를 생성해서 실행
$class_path = sprintf('%scomponents/%s/', $this->module_path, $component);
$class_file = sprintf('%s%s.class.php', $class_path, $component);
if(!file_exists($class_file)) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
require_once($class_file);
$eval_str = sprintf('$oComponent = new %s("%s","%s");', $component, $upload_target_srl, $class_path);
@eval($eval_str);
if(!$oComponent) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
return $oComponent;
}
}
?>