C# Class Orchard.UI.Navigation.NavigationHelper

Show file Open project: ucdavis/Orchard

Public Methods

Method Description
BuildLocalMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic

Builds a local menu item shape.

BuildMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic

Builds a menu item shape.

FindParentLocalTask ( Stack selectedPath ) : MenuItem

Find the first level in the selection path, starting from the bottom, that is not a local task.

PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void

Populates the local menu shapes.

PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, Stack selectedPath ) : void

Populates the local menu starting from the first non local task parent.

PopulateMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void

Populates the menu shapes.

RouteMatches ( RouteValueDictionary itemValues, RouteValueDictionary requestValues ) : bool

Determines if a menu item corresponds to a given route.

SetSelectedPath ( IEnumerable menuItems, System.Web.Routing.RouteData currentRouteData ) : Stack

Identifies the currently selected path, starting from the selected node.

Method Details

BuildLocalMenuItemShape() public static method

Builds a local menu item shape.
public static BuildLocalMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic
shapeFactory dynamic The shape factory.
parentShape dynamic The parent shape.
menu dynamic The menu shape.
menuItem MenuItem The menu item to build the shape for.
return dynamic

BuildMenuItemShape() public static method

Builds a menu item shape.
public static BuildMenuItemShape ( dynamic shapeFactory, dynamic parentShape, dynamic menu, MenuItem menuItem ) : dynamic
shapeFactory dynamic The shape factory.
parentShape dynamic The parent shape.
menu dynamic The menu shape.
menuItem MenuItem The menu item to build the shape for.
return dynamic

FindParentLocalTask() public static method

Find the first level in the selection path, starting from the bottom, that is not a local task.
public static FindParentLocalTask ( Stack selectedPath ) : MenuItem
selectedPath Stack The selection path stack. The bottom node is the currently selected one.
return MenuItem

PopulateLocalMenu() public static method

Populates the local menu shapes.
public static PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void
shapeFactory dynamic The shape factory.
parentShape dynamic The menu parent shape.
menu dynamic The menu shape.
menuItems IEnumerable The current level to populate.
return void

PopulateLocalMenu() public static method

Populates the local menu starting from the first non local task parent.
public static PopulateLocalMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, Stack selectedPath ) : void
shapeFactory dynamic The shape factory.
parentShape dynamic The menu parent shape.
menu dynamic The menu shape.
selectedPath Stack The selection path.
return void

PopulateMenu() public static method

Populates the menu shapes.
public static PopulateMenu ( dynamic shapeFactory, dynamic parentShape, dynamic menu, IEnumerable menuItems ) : void
shapeFactory dynamic The shape factory.
parentShape dynamic The menu parent shape.
menu dynamic The menu shape.
menuItems IEnumerable The current level to populate.
return void

RouteMatches() public static method

Determines if a menu item corresponds to a given route.
public static RouteMatches ( RouteValueDictionary itemValues, RouteValueDictionary requestValues ) : bool
itemValues RouteValueDictionary The menu item.
requestValues RouteValueDictionary The route data.
return bool

SetSelectedPath() public static method

Identifies the currently selected path, starting from the selected node.
public static SetSelectedPath ( IEnumerable menuItems, System.Web.Routing.RouteData currentRouteData ) : Stack
menuItems IEnumerable All the menuitems in the navigation menu.
currentRouteData System.Web.Routing.RouteData The current route data.
return Stack