mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@505 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e470227071
commit
adb02c1c24
11 changed files with 124 additions and 8 deletions
|
|
@ -27,5 +27,21 @@
|
|||
function moduleUpdate() {
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief component의 객체 생성
|
||||
**/
|
||||
function getComponentObject($component, $upload_target_srl) {
|
||||
// 해당 컴포넌트의 객체를 생성해서 실행
|
||||
$class_file = sprintf('%scomponents/%s/%s.class.php', $this->module_path, $component, $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");', $component, $upload_target_srl);
|
||||
@eval($eval_str);
|
||||
if(!$oComponent) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
||||
|
||||
return $oComponent;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue