mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 2619 Develp module skin setting api
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11852 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dd92e9b243
commit
a223a03fbc
2 changed files with 31 additions and 0 deletions
|
|
@ -336,6 +336,36 @@
|
|||
return $moduleInfoList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return module skin setting page (html type)
|
||||
* @return void
|
||||
*/
|
||||
public function getMenuAdminModuleSkin()
|
||||
{
|
||||
$menuItemSrl = Context::get('menu_item_srl');
|
||||
$menuItemInfo = $this->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');
|
||||
$skinContent = $oModuleAdminModel->getModuleSkinHTML($moduleInfo->module_srl);
|
||||
|
||||
$this->add('skinContent', $skinContent);
|
||||
}
|
||||
|
||||
public function getMenuAdminSiteMap()
|
||||
{
|
||||
$menuSrl = Context::get('menu_srl');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue