mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@307 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f777c37e3d
commit
ea6d03386e
9 changed files with 95 additions and 6 deletions
|
|
@ -90,6 +90,37 @@
|
|||
$this->add('menu_title', $menu_title);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 레이아웃 메뉴 삭제
|
||||
**/
|
||||
function procDeleteLayoutMenu() {
|
||||
// 변수 정리
|
||||
$args = Context::gets('layout_srl','layout','menu_srl','menu_id');
|
||||
|
||||
// DB에서 삭제
|
||||
$oDB = &DB::getInstance();
|
||||
$output = $oDB->executeQuery("layout.deleteLayoutMenu", $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 해당 메뉴의 정보를 구함
|
||||
$layout_info = $oLayoutModel->getLayoutInfoXml($args->layout);
|
||||
$navigations = $layout_info->navigations;
|
||||
if(count($navigations)) {
|
||||
foreach($navigations as $key => $val) {
|
||||
if($args->menu_id == $val->id) {
|
||||
$menu_title = $val->name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// XML 파일을 갱신하고 위치을 넘겨 받음
|
||||
$xml_file = $this->makeXmlFile($args->layout_srl);
|
||||
|
||||
$this->add('xml_file', $xml_file[$args->menu_id]);
|
||||
$this->add('menu_id', $args->menu_id);
|
||||
$this->add('menu_title', $menu_title);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 메뉴의 xml 파일을 만들고 위치를 return
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue