mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@661 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7472e1165f
commit
062bca7301
10 changed files with 116 additions and 2 deletions
|
|
@ -85,6 +85,33 @@
|
|||
return $component_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief compnent의 xml+db정보를 구함
|
||||
**/
|
||||
function getComponent($component_name) {
|
||||
$args->component_name = $component_name;
|
||||
|
||||
// DB에서 가져옴
|
||||
$oDB = &DB::getInstance();
|
||||
$output = $oDB->executeQuery('editor.getComponent', $args);
|
||||
$component = $output->data;
|
||||
|
||||
$component_name = $component->component_name;
|
||||
|
||||
unset($xml_info);
|
||||
$xml_info = $this->getComponentXmlInfo($component_name);
|
||||
$xml_info->enabled = $component->enabled;
|
||||
|
||||
if($component->extra_vars) {
|
||||
$extra_vars = unserialize($component->extra_vars);
|
||||
foreach($xml_info->extra_vars as $key => $val) {
|
||||
$xml_info->extra_vars->{$key}->value = $extra_vars->{$key};
|
||||
}
|
||||
}
|
||||
|
||||
return $xml_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief component의 xml정보를 읽음
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue