mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 20:29:57 +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
|
|
@ -49,5 +49,38 @@
|
|||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 관리자에서 요청될때 초기화 할 것들을 정리
|
||||
**/
|
||||
function initAdmin() {
|
||||
|
||||
// pagemaker 모듈로 등록된 module_srl을 구함
|
||||
$oPagemakerModel = &getModel('pagemaker');
|
||||
$this->module_srl = $oPagemakerModel->getModuleSrl();
|
||||
|
||||
|
||||
// 카테고리를 사용하는지 확인후 사용시 카테고리 목록을 구해와서 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);
|
||||
|
||||
// 업로드 권한 부여
|
||||
$this->grant->fileupload = true;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue