mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 06:39:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1175 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
eb3142a434
commit
8ed249412a
5 changed files with 49 additions and 6 deletions
|
|
@ -33,6 +33,19 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 등록된 모든 메뉴를 return
|
||||
**/
|
||||
function getMenus() {
|
||||
// 일단 DB에서 정보를 가져옴
|
||||
$args->menu_srl = $menu_srl;
|
||||
$output = executeQuery('menu.getMenus', $args);
|
||||
if(!$output->data) return;
|
||||
$menus = $output->data;
|
||||
if(!is_array($menus)) $menus = array($menus);
|
||||
return $menus;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DB 에 생성된 한개의 메뉴 정보를 구함
|
||||
* 생성된 메뉴의 DB정보+XML정보를 return
|
||||
|
|
|
|||
11
modules/menu/queries/getMenus.xml
Normal file
11
modules/menu/queries/getMenus.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getMenus" action="select">
|
||||
<tables>
|
||||
<table name="menu" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<navigation>
|
||||
<index var="sort_index" default="listorder" order="asc" />
|
||||
</navigation>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue