issue 2515, added a api for get installed menu types

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11412 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-09-21 04:38:39 +00:00
parent 0083b28e2a
commit fe9e2263b8
2 changed files with 9 additions and 0 deletions

View file

@ -14,6 +14,7 @@
<action name="getMenuAdminTplInfo" type="model" standalone="true" />
<action name="getMenuAdminItemInfo" type="model" standalone="true" />
<action name="getMenuAdminSiteMap" type="model" standalone="true" />
<action name="getMenuAdminInstalledMenuType" type="model" standalone="true" />
<action name="procMenuAdminInsert" type="controller" standalone="true" ruleset="insertMenu" />
<action name="procMenuAdminUpdate" type="controller" standalone="true" ruleset="updateMenuTitle" />

View file

@ -258,6 +258,14 @@
$this->add('tpl', str_replace("\n"," ",$tpl));
}
/**
* get installed menu type api
*/
function getMenuAdminInstalledMenuType()
{
$this->add('menu_types', $this->getModuleListInSitemap());
}
/**
* @brief when menu add in sitemap, select module list
* this menu showing with trigger