39 if(
$logged_info->is_admin ==
'Y' && !$site_keyword) $site_srl = 0;
40 else $site_srl = (int)$site_module_info->site_srl;
47 $oMenuController->linkAllModuleInstancesToSitemap();
53 $menuListFromDB = $oMenuAdminModel->getMenus();
54 if(is_array($menuListFromDB))
$output = array_reverse($menuListFromDB);
60 foreach(
$output as $key=>$value)
62 if($value->title == $oAdmin->getAdminMenuName()) unset(
$output[$key]);
65 unset($menu, $menuItems);
67 $value->php_file = sprintf(
_XE_PATH_ .
'files/cache/menu/%s.php',$value->menu_srl);
68 if(file_exists($value->php_file)) include($value->php_file);
70 if(count($menu->list)>0)
72 foreach($menu->list as $key2=>$value2)
79 $menuItems =
new stdClass();
80 $menuItems->menuSrl = $value->menu_srl;
81 $menuItems->title = $value->title;
82 $menuItems->desc = $value->desc;
83 $menuItems->menuItems = $menu;
84 $menuList[] = $menuItems;
92 $resultModuleList = $oMenuAdminModel->getModuleListInSitemap($site_srl);
96 $layoutList = $oLayoutModel->getLayoutList();
100 $theme_file =
_XE_PATH_.
'files/theme/theme_info.php';
101 if(is_readable($theme_file))
103 include($theme_file);
110 Context::set(
'current_layout', $default_mid->layout_srl);
115 $output = $oMemberModel->getGroups();
118 $groupList = array();
121 $groupList[$value->group_srl] =
new stdClass();
122 $groupList[$value->group_srl]->group_srl = $value->group_srl;
123 $groupList[$value->group_srl]->title = $value->title;
148 if($menu[
'url'] && strncasecmp(
'http', $menu[
'url'], 4) !== 0)
152 $midInfo =
$oModuleModel->getModuleInfoByMid($menu[
'url'], 0);
156 $menu[
'module_srl'] = $midInfo->module_srl;
157 $menu[
'setup_index_act'] =
$moduleInfo->setup_index_act;
160 $menu[
'layout_srl'] = $midInfo->layout_srl;
162 if(count($menu[
'list']) > 0)
164 foreach($menu[
'list'] as $key=>$value)
178 if(is_array($menuItems))
180 $arrangedMenuItemList = array();
181 foreach($menuItems as $value)
183 if($value->parent_srl == 0)
185 $arrangedMenuItemList[$value->menu_item_srl] = array(
'name'=>$value->name,
'subMenu'=>array());
188 if($value->parent_srl > 0 && isset($arrangedMenuItemList[$value->parent_srl]))
190 $arrangedMenuItemList[$value->parent_srl][
'subMenu'][$value->menu_item_srl] = $value;
194 return $arrangedMenuItemList;
setTemplateFile($filename)
getController($module_name)
set($key, $val, $set_to_get_vars=0)
getAdminModel($module_name)
getAdminController($module_name)