mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 20:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@457 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6c077be600
commit
437a8b1395
11 changed files with 195 additions and 40 deletions
|
|
@ -15,39 +15,10 @@
|
|||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// pagemaker 모듈로 등록된 module_srl을 구함
|
||||
$oPagemakerModel = &getModel('pagemaker');
|
||||
$this->module_srl = $oPagemakerModel->getModuleSrl();
|
||||
|
||||
// template path 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl.admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 관리자에서 요청될때 초기화 할 것들을 정리
|
||||
**/
|
||||
function initAdmin() {
|
||||
|
||||
// 카테고리를 사용하는지 확인후 사용시 카테고리 목록을 구해와서 Context에 세팅
|
||||
/*
|
||||
if($this->module_info->use_category=='Y') {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$this->category_list = $oDocumentModel->getCategoryList($this->module_srl);
|
||||
Context::set('category_list', $this->category_list);
|
||||
}
|
||||
*/
|
||||
|
||||
// 에디터 세팅
|
||||
$editor = "default";
|
||||
Context::set('editor', $editor);
|
||||
$editor_path = sprintf("./editor/%s/", $editor);
|
||||
Context::set('editor_path', $editor_path);
|
||||
Context::loadLang($editor_path);
|
||||
|
||||
// 템플릿에서 사용할 변수를 Context::set()
|
||||
if($this->module_srl) Context::set('module_srl',$this->module_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 목록 출력
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue