mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2619 201d5d3c-b55e-5fd7-737f-ddc643e51545
101 lines
3.2 KiB
PHP
101 lines
3.2 KiB
PHP
<?php
|
|
/**
|
|
* @class moduleAdminView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief module 모듈의 admin view class
|
|
**/
|
|
|
|
class moduleAdminView extends module {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
// template path 지정
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 관리자 페이지
|
|
**/
|
|
function dispModuleAdminContent() {
|
|
$this->dispModuleAdminList();
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 목록 출력
|
|
**/
|
|
function dispModuleAdminList() {
|
|
// 모듈 목록을 구해서
|
|
$oModuleModel = &getModel('module');
|
|
$module_list = $oModuleModel->getModuleList();
|
|
Context::set('module_list', $module_list);
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('module_list');
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈의 상세 정보(conf/info.xml)를 팝업 출력
|
|
**/
|
|
function dispModuleAdminInfo() {
|
|
// 모듈 목록을 구해서
|
|
$oModuleModel = &getModel('module');
|
|
$module_info = $oModuleModel->getModuleInfoXml(Context::get('selected_module'));
|
|
Context::set('module_info', $module_info);
|
|
|
|
// 레이아웃을 팝업으로 지정
|
|
$this->setLayoutFile('popup_layout');
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('module_info');
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 카테고리 목록
|
|
**/
|
|
function dispModuleAdminCategory() {
|
|
$module_category_srl = Context::get('module_category_srl');
|
|
|
|
// 모듈 목록을 구해서
|
|
$oModuleModel = &getModel('module');
|
|
|
|
// 선택된 카테고리가 있으면 해당 카테고리의 정보 수정 페이지로
|
|
if($module_category_srl) {
|
|
$selected_category = $oModuleModel->getModuleCategory($module_category_srl);
|
|
Context::set('selected_category', $selected_category);
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('category_update_form');
|
|
|
|
// 아니면 전체 목록
|
|
} else {
|
|
$category_list = $oModuleModel->getModuleCategories();
|
|
Context::set('category_list', $category_list);
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('category_list');
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 복사 기능
|
|
**/
|
|
function dispModuleAdminCopyModule() {
|
|
// 복사하려는 대상 모듈을 구함
|
|
$module_srl = Context::get('module_srl');
|
|
|
|
// 해당 모듈의 정보를 구함
|
|
$oModuleModel = &getModel('module');
|
|
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
|
Context::set('module_info', $module_info);
|
|
|
|
// 레이아웃을 팝업으로 지정
|
|
$this->setLayoutFile('popup_layout');
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('copy_module');
|
|
}
|
|
|
|
}
|
|
?>
|