mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 16:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@379 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6a494850da
commit
af7dc3565d
15 changed files with 204 additions and 12 deletions
|
|
@ -186,11 +186,14 @@
|
|||
/**
|
||||
* @brief 모듈 카테고리 추가
|
||||
**/
|
||||
function procInsertModuleCategory() {
|
||||
function procInsertCategory() {
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
$args->title = Context::get('title');
|
||||
return $oDB->executeQuery('module.insertModuleCategory', $args);
|
||||
$output = $oDB->executeQuery('module.insertModuleCategory', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setMessage("success_registed");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -213,5 +216,27 @@
|
|||
$args->module_category_srl = Context::get('module_category_srl');
|
||||
return $oDB->executeQuery('module.deleteModuleCategory', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 카테고리의 내용 수정
|
||||
**/
|
||||
function procUpdateCategory() {
|
||||
$mode = Context::get('mode');
|
||||
|
||||
switch($mode) {
|
||||
case 'delete' :
|
||||
$output = $this->procDeleteModuleCategory();
|
||||
$msg_code = 'success_deleted';
|
||||
break;
|
||||
case 'update' :
|
||||
$output = $this->procUpdateModuleCategory();
|
||||
$msg_code = 'success_updated';
|
||||
break;
|
||||
}
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setMessage($msg_code);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue