mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 23:31:44 +09:00
삭제
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
8326004cb2
2773 changed files with 91485 additions and 0 deletions
27
classes/editor/EditorHandler.class.php
Normal file
27
classes/editor/EditorHandler.class.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
/**
|
||||
* @class EditorHandler
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief edit component의 상위 클래스임
|
||||
*
|
||||
* 주로 하는 일은 컴포넌트 요청시 컴포넌트에서 필요로 하는 변수를 세팅해준다
|
||||
**/
|
||||
|
||||
class EditorHandler extends Object {
|
||||
|
||||
/**
|
||||
* @brief 컴포넌트의 xml및 관련 정보들을 설정
|
||||
**/
|
||||
function setInfo($info) {
|
||||
Context::set('component_info', $info);
|
||||
|
||||
if(!$info->extra_vars) return;
|
||||
|
||||
foreach($info->extra_vars as $key => $val) {
|
||||
$this->{$key} = trim($val->value);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue