• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class PersonaBarController

Inheritance
System.Object
ServiceLocator<IPersonaBarController, PersonaBarController>
PersonaBarController
Implements
IPersonaBarController
Inherited Members
ServiceLocator<IPersonaBarController, PersonaBarController>.Instance
ServiceLocator<IPersonaBarController, PersonaBarController>.Factory
ServiceLocator<IPersonaBarController, PersonaBarController>.SetTestableInstance(IPersonaBarController)
ServiceLocator<IPersonaBarController, PersonaBarController>.ClearInstance()
ServiceLocator<IPersonaBarController, PersonaBarController>.GetFactory()
Namespace: Dnn.PersonaBar.Library.Controllers
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class PersonaBarController : ServiceLocator<IPersonaBarController, PersonaBarController>, IPersonaBarController

Constructors

| Improve this Doc View Source

PersonaBarController()

Declaration
public PersonaBarController()

Methods

| Improve this Doc View Source

GetFactory()

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.

| Improve this Doc View Source

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.

Implements

IPersonaBarController

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS