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

This commit is contained in:
zero 2007-03-30 04:00:07 +00:00
parent da1fe7f3b1
commit 2b97664ba0
13 changed files with 83 additions and 87 deletions

View file

@ -2,7 +2,9 @@
/**
* @class EditorHandler
* @author zero (zero@nzeo.com)
* @brief addon을 호출하여 실행
* @brief edit component의 상위 클래스임
*
* 주로 하는 일은 컴포넌트 요청시 컴포넌트에서 필요로 하는 변수를 세팅해준다
**/
class EditorHandler extends Object {
@ -13,10 +15,10 @@
function setInfo($info) {
Context::set('component_info', $info);
if($info->extra_vars) {
foreach($info->extra_vars as $key => $val) {
$this->{$key} = trim($val->value);
}
if(!$info->extra_vars) return;
foreach($info->extra_vars as $key => $val) {
$this->{$key} = trim($val->value);
}
}