mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 06:42:14 +09:00
issue 160 when new menu add in sitemap.
get module list by created module instance git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9247 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
28c8c97343
commit
ad8da09158
4 changed files with 38 additions and 4 deletions
|
|
@ -227,12 +227,36 @@
|
|||
**/
|
||||
function getModuleListInSitemap()
|
||||
{
|
||||
// after trigger
|
||||
$oModuleModel = &getModel('module');
|
||||
$columnList = array('module');
|
||||
$moduleList = array('page');
|
||||
|
||||
$output = $oModuleModel->getModuleListByInstance($columnList);
|
||||
if(is_array($output->data))
|
||||
{
|
||||
foreach($output->data AS $key=>$value)
|
||||
{
|
||||
array_push($moduleList, $value->module);
|
||||
}
|
||||
}
|
||||
|
||||
// after trigger
|
||||
$output = ModuleHandler::triggerCall('menu.getModuleListInSitemap', 'after', $moduleList);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
return $moduleList;
|
||||
$moduleList = array_unique($moduleList);
|
||||
|
||||
$moduleInfoList = array();
|
||||
if(is_array($moduleList))
|
||||
{
|
||||
foreach($moduleList AS $key=>$value)
|
||||
{
|
||||
$moduleInfo = $oModuleModel->getModuleInfoXml($value);
|
||||
$moduleInfoList[$value] = $moduleInfo;
|
||||
}
|
||||
}
|
||||
|
||||
return $moduleInfoList;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue