mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
issue 2611 menu detail setting develop.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11815 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
26562620ec
commit
9033eac789
3 changed files with 38 additions and 0 deletions
|
|
@ -399,6 +399,37 @@
|
|||
$this->add('menuList', $menuList);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get module's detail setup contents
|
||||
* @return void
|
||||
*/
|
||||
public function getMenuAdminDetailSetup()
|
||||
{
|
||||
$menuItemSrl = Context::get('menu_item_srl');
|
||||
if(!$menuItemSrl)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$menuItemInfo = $this->getMenuItemInfo($menuItemSrl);
|
||||
|
||||
// if menu is shortcut
|
||||
if($menuItemInfo->is_shortcut == 'Y')
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
// get module info
|
||||
$oModuleModel = &getModel('module');
|
||||
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItemInfo->url);
|
||||
|
||||
// get xml info
|
||||
$moduleConfInfo = $oModuleModel->getModuleInfoXml($moduleInfo->module);
|
||||
|
||||
$setupUrl = getNotEncodedUrl('', 'module', 'admin', 'act', $moduleConfInfo->setup_index_act, 'module_srl', $moduleInfo->module_srl, 'isLayoutDrop', '1');
|
||||
$this->add('setupUrl', $setupUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting menu information(recursive)
|
||||
* @param array $menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue