mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
issue 70 menu working. Not yet completed source
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8590 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d803e8b89d
commit
683f041593
12 changed files with 393 additions and 292 deletions
|
|
@ -69,6 +69,22 @@
|
|||
return $menu_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get information of a new menu from the DB, search condition is menu title
|
||||
* Return DB and XML information of the menu
|
||||
**/
|
||||
function getMenuByTitle($title) {
|
||||
// Get information from the DB
|
||||
$args->title = $title;
|
||||
$output = executeQuery('menu.getMenuByTitle', $args);
|
||||
if(!$output->data) return;
|
||||
|
||||
$menu_info = $output->data;
|
||||
$menu_info->xml_file = sprintf('./files/cache/menu/%s.xml.php',$menu_info->menu_srl);
|
||||
$menu_info->php_file = sprintf('./files/cache/menu/%s.php',$menu_info->menu_srl);
|
||||
return $menu_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return item information of the menu_srl
|
||||
* group_srls uses a seperator with comma(,) and converts to an array by explode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue