mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 22:02:13 +09:00
issue 2619 model to view
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11879 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
945c3f34fd
commit
32bf25b332
3 changed files with 39 additions and 68 deletions
|
|
@ -225,6 +225,44 @@
|
|||
$this->setTemplateFile('sitemap');
|
||||
}
|
||||
|
||||
/**
|
||||
* Module skin setup common page
|
||||
* @return void
|
||||
*/
|
||||
public function dispMenuAdminSkinSetup()
|
||||
{
|
||||
$menuItemSrl = Context::get('menu_item_srl');
|
||||
if(!$menuItemSrl)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$menuItemInfo = $oMenuAdminModel->getMenuItemInfo($menuItemSrl);
|
||||
if(!$menuItemInfo->menu_item_srl)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
// If menu type is not module
|
||||
if(empty($menuItemInfo->url) || preg_match('/^http/i', $menuItemInfo->url))
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItemInfo->url);
|
||||
|
||||
// get the grant infotmation from admin module
|
||||
$oModuleAdminModel = &getAdminModel('module');
|
||||
$skin_content = $oModuleAdminModel->getModuleSkinHTML($moduleInfo->module_srl);
|
||||
Context::set('skin_content', $skin_content);
|
||||
|
||||
$this->setLayoutPath('common/tpl');
|
||||
$this->setLayoutFile('default_layout');
|
||||
$this->setTemplateFile('skin_info');
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting menu information(recursive)
|
||||
* @param array $menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue