The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:WebAdminMenu (UT3)
Object >> WebAdminMenu |
- Package:
- WebAdmin
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Menu manager for the webadmin
Copyright 2008 Epic Games, Inc. All Rights Reserved
Author: Michiel 'elmuerte' Hendriks
Properties[edit]
[edit]
tree[edit]
webadmin[edit]
Type: WebAdmin
Structs[edit]
MenuItem[edit]
- string path
- The absolute path (from the webapp path). Examples:
foo foo/bar/quux bar bar/quux bar/quux2
- string title
- Title of the menu item
- string description
- A short description
- int weight
- The weight of this item. A low number means it will be higher in the list.
- IQueryHandler handler
- The handler responsible for handling this menu item.
TreeItem[edit]
Instance functions[edit]
addMenu[edit]
Add a new menu item (or overwrite the previous for the given path).
addMenuItem[edit]
Add an item to the menu, or if the path already exist, update an existing item. To create a hidden item simply leave out the title.
addSortedItem[edit]
Add a menu item to the list sorting on the full path.
createTree[edit]
Parses the sorted list of menu items and creates the tree.
getHandlerFor[edit]
Get the menu handler for a given path
getUserMenu[edit]
return the menu instance of the given user. All paths to which the user has no access will be filtered from the list.
Returns:
- none when the user has absolutely no access, otherwise an instance is returned that only contains the paths the user has access to.
render[edit]
Render the current menu tree to a navigation menu