Class PersonaBarController
Inheritance
System.Object
PersonaBarController
Implements
Inherited Members
Namespace: Dnn.PersonaBar.Library.Controllers
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class PersonaBarController : ServiceLocator<IPersonaBarController, PersonaBarController>, IPersonaBarController
Constructors
| Improve this Doc View SourcePersonaBarController()
Declaration
public PersonaBarController()
Methods
| Improve this Doc View SourceGetFactory()
Gets the service locator factory.
Declaration
protected override Func<IPersonaBarController> GetFactory()
Returns
Type | Description |
---|---|
Func<IPersonaBarController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<Dnn.PersonaBar.Library.Controllers.IPersonaBarController, Dnn.PersonaBar.Library.Controllers.PersonaBarController>.GetFactory()
|
Improve this Doc
View Source
GetMenu(PortalSettings, UserInfo)
Gets the menu structure of the persona bar.
Declaration
public PersonaBarMenu GetMenu(PortalSettings portalSettings, UserInfo user)
Parameters
Type | Name | Description |
---|---|---|
PortalSettings | portalSettings | The portal settings. |
UserInfo | user |
Returns
Type | Description |
---|---|
PersonaBarMenu | Persona bar menu structure for the user. |
IsVisible(PortalSettings, UserInfo, MenuItem)
Whether the menu item is visible.
Declaration
public bool IsVisible(PortalSettings portalSettings, UserInfo user, MenuItem menuItem)
Parameters
Type | Name | Description |
---|---|---|
PortalSettings | portalSettings | Portal Settings. |
UserInfo | user | User Info. |
MenuItem | menuItem | The menu item. |
Returns
Type | Description |
---|---|
System.Boolean | true if the menu item is visible, otherwise false. |