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

Class ModulesController

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

Constructors

| Improve this Doc View Source

ModulesController()

Initializes a new instance of the ModulesController class.

Declaration
public ModulesController()
| Improve this Doc View Source

ModulesController(IContentVerifier)

Initializes a new instance of the ModulesController class.

Declaration
public ModulesController(IContentVerifier contentVerifier)
Parameters
Type Name Description
IContentVerifier contentVerifier

Methods

| Improve this Doc View Source

AddNewModule(PortalSettings, String, Int32, Int32, String, Int32, Int32, String, out KeyValuePair<HttpStatusCode, String>)

Declaration
public List<ModuleInfo> AddNewModule(PortalSettings portalSettings, string title, int desktopModuleId, int tabId, string paneName, int position, int permissionType, string align, out KeyValuePair<HttpStatusCode, string> message)
Parameters
Type Name Description
PortalSettings portalSettings
System.String title
System.Int32 desktopModuleId
System.Int32 tabId
System.String paneName
System.Int32 position
System.Int32 permissionType
System.String align
KeyValuePair<HttpStatusCode, System.String> message
Returns
Type Description
List<ModuleInfo>
| Improve this Doc View Source

CopyModule(PortalSettings, Int32, Int32, Int32, String, Boolean, out KeyValuePair<HttpStatusCode, String>, Boolean)

Declaration
public ModuleInfo CopyModule(PortalSettings portalSettings, int moduleId, int sourcePageId, int targetPageId, string pane, bool includeSettings, out KeyValuePair<HttpStatusCode, string> message, bool moveBahaviour = false)
Parameters
Type Name Description
PortalSettings portalSettings
System.Int32 moduleId
System.Int32 sourcePageId
System.Int32 targetPageId
System.String pane
System.Boolean includeSettings
KeyValuePair<HttpStatusCode, System.String> message
System.Boolean moveBahaviour
Returns
Type Description
ModuleInfo
| Improve this Doc View Source

DeleteModule(PortalSettings, Int32, Int32, out KeyValuePair<HttpStatusCode, String>)

Declaration
public void DeleteModule(PortalSettings portalSettings, int moduleId, int pageId, out KeyValuePair<HttpStatusCode, string> message)
Parameters
Type Name Description
PortalSettings portalSettings
System.Int32 moduleId
System.Int32 pageId
KeyValuePair<HttpStatusCode, System.String> message
| Improve this Doc View Source

GetFactory()

Gets the service locator factory.

Declaration
protected override Func<IModulesController> GetFactory()
Returns
Type Description
Func<IModulesController>

A factory function.

Overrides
DotNetNuke.Framework.ServiceLocator<Dnn.PersonaBar.Library.Controllers.IModulesController, Dnn.PersonaBar.Library.Controllers.ModulesController>.GetFactory()
| Improve this Doc View Source

GetModule(PortalSettings, Int32, Nullable<Int32>, out KeyValuePair<HttpStatusCode, String>)

Declaration
public ModuleInfo GetModule(PortalSettings portalSettings, int moduleId, int? pageId, out KeyValuePair<HttpStatusCode, string> message)
Parameters
Type Name Description
PortalSettings portalSettings
System.Int32 moduleId
System.Nullable<System.Int32> pageId
KeyValuePair<HttpStatusCode, System.String> message
Returns
Type Description
ModuleInfo
| Improve this Doc View Source

GetModules(PortalSettings, Nullable<Boolean>, out Int32, String, String, Nullable<Int32>, Int32, Int32)

Declaration
public IEnumerable<ModuleInfo> GetModules(PortalSettings portalSettings, bool? deleted, out int total, string moduleName = null, string moduleTitle = null, int? pageId = null, int pageIndex = 0, int pageSize = 10)
Parameters
Type Name Description
PortalSettings portalSettings
System.Nullable<System.Boolean> deleted
System.Int32 total
System.String moduleName
System.String moduleTitle
System.Nullable<System.Int32> pageId
System.Int32 pageIndex
System.Int32 pageSize
Returns
Type Description
IEnumerable<ModuleInfo>

Implements

IModulesController

Extension Methods

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