C# Class AJH.CMS.Core.Data.MenuManager

Show file Open project: ajhCMS/AJH.CMS.WEB.UI

Public Methods

Method Description
Add ( Menu menu ) : int
Delete ( int ID ) : void
DeleteLogical ( int ID ) : void
GetDefaultSitePath ( string PageTitle ) : string
GetMenu ( int ID ) : Menu
GetMenu ( int parentObjID, int languageID ) : Menu
GetMenuByIdAndLanguage ( int MenuID, int languageID ) : Menu
GetMenuCategoryXMLPath ( string MenuCategoryPath, int CategoryID, int languageID ) : string
GetMenuItemTemplateXml ( int menuId, int languageId, Menu &menu ) : string
GetMenus ( ) : List
GetMenus ( int PortalID, int LanguageID ) : List
GetMenus ( int ParentID, int PortalID, int LanguageID ) : List
GetMenusByCategoryAndLanguage ( int CategoryID, int languageID ) : List
GetMenusByPage ( int PageID ) : List
GetMenusParentObjByCategory ( int categoryID ) : List
Update ( Menu menu ) : void

Private Methods

Method Description
SetAttributeMenuNode ( XmlElement xmlEle, Menu menuItem ) : void
SetElementChildMenu ( XmlElement xmlParent, List menus, int ParentMenuID ) : void

Method Details

Add() public static method

public static Add ( Menu menu ) : int
menu AJH.CMS.Core.Entities.Menu
return int

Delete() public static method

public static Delete ( int ID ) : void
ID int
return void

DeleteLogical() public static method

public static DeleteLogical ( int ID ) : void
ID int
return void

GetDefaultSitePath() public static method

public static GetDefaultSitePath ( string PageTitle ) : string
PageTitle string
return string

GetMenu() public static method

public static GetMenu ( int ID ) : Menu
ID int
return AJH.CMS.Core.Entities.Menu

GetMenu() public static method

public static GetMenu ( int parentObjID, int languageID ) : Menu
parentObjID int
languageID int
return AJH.CMS.Core.Entities.Menu

GetMenuByIdAndLanguage() public static method

public static GetMenuByIdAndLanguage ( int MenuID, int languageID ) : Menu
MenuID int
languageID int
return AJH.CMS.Core.Entities.Menu

GetMenuCategoryXMLPath() public static method

public static GetMenuCategoryXMLPath ( string MenuCategoryPath, int CategoryID, int languageID ) : string
MenuCategoryPath string
CategoryID int
languageID int
return string

GetMenuItemTemplateXml() public static method

public static GetMenuItemTemplateXml ( int menuId, int languageId, Menu &menu ) : string
menuId int
languageId int
menu AJH.CMS.Core.Entities.Menu
return string

GetMenus() public static method

public static GetMenus ( ) : List
return List

GetMenus() public static method

public static GetMenus ( int PortalID, int LanguageID ) : List
PortalID int
LanguageID int
return List

GetMenus() public static method

public static GetMenus ( int ParentID, int PortalID, int LanguageID ) : List
ParentID int
PortalID int
LanguageID int
return List

GetMenusByCategoryAndLanguage() public static method

public static GetMenusByCategoryAndLanguage ( int CategoryID, int languageID ) : List
CategoryID int
languageID int
return List

GetMenusByPage() public static method

public static GetMenusByPage ( int PageID ) : List
PageID int
return List

GetMenusParentObjByCategory() public static method

public static GetMenusParentObjByCategory ( int categoryID ) : List
categoryID int
return List

Update() public static method

public static Update ( Menu menu ) : void
menu AJH.CMS.Core.Entities.Menu
return void