mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* @class editorAdminView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief editor 모듈의 admin view 클래스
|
|
**/
|
|
|
|
class editorAdminView extends editor {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief 관리자 설정 페이지
|
|
* 에디터 컴포넌트의 on/off 및 설정을 담당
|
|
**/
|
|
function dispEditorAdminIndex() {
|
|
// 컴포넌트의 종류를 구해옴
|
|
$oEditorModel = &getModel('editor');
|
|
$component_list = $oEditorModel->getComponentList(false);
|
|
|
|
Context::set('component_list', $component_list);
|
|
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
$this->setTemplateFile('admin_index');
|
|
}
|
|
|
|
/**
|
|
* @brief 컴퍼넌트 setup
|
|
**/
|
|
function dispEditorAdminSetupComponent() {
|
|
$component_name = Context::get('component_name');
|
|
|
|
$oEditorModel = &getModel('editor');
|
|
$component = $oEditorModel->getComponent($component_name);
|
|
Context::set('component', $component);
|
|
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
$this->setTemplateFile('setup_component');
|
|
$this->setLayoutFile("popup_layout");
|
|
}
|
|
|
|
}
|
|
?>
|