mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 15:21:40 +09:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* @class editorView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief editor 모듈의 view 클래스
|
|
**/
|
|
|
|
class editorView extends editor {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief 에디터를 return
|
|
**/
|
|
function getEditor($upload_target_srl, $allow_fileupload = false) {
|
|
// 업로드를 위한 변수 설정
|
|
Context::set('upload_target_srl', $upload_target_srl);
|
|
Context::set('allow_fileupload', $allow_fileupload);
|
|
|
|
// 에디터 컴포넌트를 구함
|
|
$component_list = FileHandler::readDir($this->module_path.'components');
|
|
debugPrint($component_list);
|
|
|
|
|
|
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
|
$tpl_path = $this->module_path.'tpl';
|
|
$tpl_file = 'editor.html';
|
|
|
|
require_once("./classes/template/TemplateHandler.class.php");
|
|
$oTemplate = new TemplateHandler();
|
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
|
}
|
|
|
|
/**
|
|
* @brief 팝업 출력 출력
|
|
**/
|
|
function dispPopup() {
|
|
$this->setTemplatePath($this->module_path.'tpl/popup');
|
|
$this->setTemplateFile('emoticon.html');
|
|
}
|
|
|
|
}
|
|
?>
|