mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
2. 게시판 모듈(board)의 경우 기본 설정 - 추가 설정 - 권한 설정을 여러개의 게시판에 대해서 일괄 적용할 수 있도록 기능 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3519 201d5d3c-b55e-5fd7-737f-ddc643e51545
52 lines
1.7 KiB
PHP
52 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* @class fileView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief file module의 view class
|
|
*
|
|
* RSS 2.0형식으로 문서 출력
|
|
*
|
|
**/
|
|
|
|
class fileView extends file {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief 서비스형 모듈의 추가 설정을 위한 부분
|
|
* file의 사용 형태에 대한 설정만 받음
|
|
**/
|
|
function triggerDispFileAdditionSetup(&$obj) {
|
|
$current_module_srl = Context::get('module_srl');
|
|
$current_module_srls = Context::get('module_srls');
|
|
|
|
if(!$current_module_srl && !$current_module_srls) {
|
|
// 선택된 모듈의 정보를 가져옴
|
|
$current_module_info = Context::get('current_module_info');
|
|
$current_module_srl = $current_module_info->module_srl;
|
|
if(!$current_module_srl) return new Object();
|
|
}
|
|
|
|
// 선택된 모듈의 file설정을 가져옴
|
|
$oFileModel = &getModel('file');
|
|
$file_config = $oFileModel->getFileModuleConfig($current_module_srl);
|
|
Context::set('file_config', $file_config);
|
|
|
|
// 그룹의 설정을 위한 권한 가져오기
|
|
$oMemberModel = &getModel('member');
|
|
$group_list = $oMemberModel->getGroups();
|
|
Context::set('group_list', $group_list);
|
|
|
|
// 템플릿 파일 지정
|
|
$oTemplate = &TemplateHandler::getInstance();
|
|
$tpl = $oTemplate->compile($this->module_path.'tpl', 'file_module_config');
|
|
$obj .= $tpl;
|
|
|
|
return new Object();
|
|
}
|
|
}
|
|
?>
|