mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
66 lines
1.9 KiB
PHP
66 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* @class moduleAdminController
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief module 모듈의 admin controller class
|
|
**/
|
|
|
|
class moduleAdminController extends module {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 카테고리 추가
|
|
**/
|
|
function procModuleAdminInsertCategory() {
|
|
$args->title = Context::get('title');
|
|
$output = executeQuery('module.insertModuleCategory', $args);
|
|
if(!$output->toBool()) return $output;
|
|
|
|
$this->setMessage("success_registed");
|
|
}
|
|
|
|
/**
|
|
* @brief 카테고리의 내용 수정
|
|
**/
|
|
function procModuleAdminUpdateCategory() {
|
|
$mode = Context::get('mode');
|
|
|
|
switch($mode) {
|
|
case 'delete' :
|
|
$output = $this->doDeleteModuleCategory();
|
|
$msg_code = 'success_deleted';
|
|
break;
|
|
case 'update' :
|
|
$output = $this->doUpdateModuleCategory();
|
|
$msg_code = 'success_updated';
|
|
break;
|
|
}
|
|
if(!$output->toBool()) return $output;
|
|
|
|
$this->setMessage($msg_code);
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 카테고리의 제목 변경
|
|
**/
|
|
function doUpdateModuleCategory() {
|
|
$args->title = Context::get('title');
|
|
$args->module_category_srl = Context::get('module_category_srl');
|
|
return executeQuery('module.updateModuleCategory', $args);
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 카테고리 삭제
|
|
**/
|
|
function doDeleteModuleCategory() {
|
|
$args->module_category_srl = Context::get('module_category_srl');
|
|
return executeQuery('module.deleteModuleCategory', $args);
|
|
}
|
|
|
|
}
|
|
?>
|