issue 70 sitemap developement.

but yet not completed


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8940 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-30 01:56:38 +00:00
parent d497aa06d3
commit a3b9fc7338
9 changed files with 544 additions and 5 deletions

View file

@ -107,6 +107,34 @@
return $node;
}
/**
* @brief Return item information of the menu_srl
**/
function getMenuAdminItemInfo()
{
$menuItemSrl = Context::get('menu_item_srl');
$menuItem = $this->getMenuItemInfo($menuItemSrl);
// get groups
$oMemberModel = &getModel('member');
$output = $oMemberModel->getGroups();
if(is_array($output))
{
$groupList = array();
foreach($output AS $key=>$value)
{
$groupList[$value->group_srl]->group_srl = $value->group_srl;
$groupList[$value->group_srl]->title = $value->title;
if(in_array($key, $menuItem->group_srls)) $groupList[$value->group_srl]->isChecked = true;
else $groupList[$value->group_srl]->isChecked = false;
}
}
$menuItem->groupList = $groupList;
$this->add('menu_item', $menuItem);
}
function getMenuItems($menu_srl, $parent_srl = null, $columnList = array())
{
$args->menu_srl = $menu_srl;