mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@830 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
78117ab6db
commit
7df7339504
1 changed files with 11 additions and 3 deletions
|
|
@ -18,6 +18,16 @@
|
||||||
function procAdminInsertShortCut() {
|
function procAdminInsertShortCut() {
|
||||||
$module = Context::get('selected_module');
|
$module = Context::get('selected_module');
|
||||||
|
|
||||||
|
$output = $this->insertShortCut($module);
|
||||||
|
if(!$output->toBool()) return $output;
|
||||||
|
|
||||||
|
$this->setMessage('success_registed');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 관리자 페이지의 단축 메뉴 추가
|
||||||
|
**/
|
||||||
|
function insertShortCut($module) {
|
||||||
// 선택된 모듈의 정보중에서 admin_index act를 구함
|
// 선택된 모듈의 정보중에서 admin_index act를 구함
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$module_info = $oModuleModel->getModuleInfoXml($module);
|
$module_info = $oModuleModel->getModuleInfoXml($module);
|
||||||
|
|
@ -29,9 +39,7 @@
|
||||||
|
|
||||||
$oDB = &DB::getInstance();
|
$oDB = &DB::getInstance();
|
||||||
$output = $oDB->executeQuery('admin.insertShortCut', $args);
|
$output = $oDB->executeQuery('admin.insertShortCut', $args);
|
||||||
if(!$output->toBool()) return $output;
|
return $output;
|
||||||
|
|
||||||
$this->setMessage('success_registed');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue