C# Class DotNetNuke.Extensions.Modules.ModuleControllerExtensions

Add easy-to-use functionality to ModuleController to add and remove modules from tabs.
Mostrar archivo Open project: JonHaywood/DotNetNuke.Extensions

Public Methods

Method Description
AddModuleToTab ( this moduleController, DotNetNuke.Entities.Modules.ModuleInfo module, ModuleAddType moduleType, int destinationTabID ) : void

Adds the module to tab.

AddModulesToTab ( this moduleController, IEnumerable modules, ModuleAddType moduleType, int tabID ) : void

Adds the modules to tab.

AddModulesToTabs ( this moduleController, IEnumerable moduleIds, ModuleAddType moduleType, List tabs ) : void

Adds the modules to tabs.

DeleteModuleFromTab ( this moduleController, DotNetNuke.Entities.Modules.ModuleInfo module, int tabID ) : void

Deletes the module from tab.

DeleteModulesFromTabs ( this moduleController, IEnumerable moduleIds, List tabs ) : void

Deletes the modules from tabs.

GetModulesOnTab ( this moduleController, DotNetNuke.Entities.Tabs.TabInfo tab ) : IEnumerable

Gets the modules on tab.

Private Methods

Method Description
AddNewModuleToPage ( DotNetNuke.Entities.Modules.ModuleInfo moduleToCopy, int destinationTabID ) : void

Adds the new module to page.

AddReferencedModuleToPage ( DotNetNuke.Entities.Modules.ModuleInfo moduleToCopy, int destinationTabID ) : void

Adds the referenced module to page.

CopyModuleToPage ( DotNetNuke.Entities.Modules.ModuleInfo moduleToCopy, int destinationTabID ) : void

Copies the module to page.

DuplicateModuleSettings ( DotNetNuke.Entities.Modules.ModuleInfo originalModule, int destinationModuleID ) : void

Duplicates the module settings.

Method Details

AddModuleToTab() public static method

Adds the module to tab.
public static AddModuleToTab ( this moduleController, DotNetNuke.Entities.Modules.ModuleInfo module, ModuleAddType moduleType, int destinationTabID ) : void
moduleController this The module controller.
module DotNetNuke.Entities.Modules.ModuleInfo The module.
moduleType ModuleAddType Type of the module.
destinationTabID int The destination tab ID.
return void

AddModulesToTab() public static method

Adds the modules to tab.
public static AddModulesToTab ( this moduleController, IEnumerable modules, ModuleAddType moduleType, int tabID ) : void
moduleController this The module controller.
modules IEnumerable The modules.
moduleType ModuleAddType Type of the module.
tabID int The tab ID.
return void

AddModulesToTabs() public static method

Adds the modules to tabs.
public static AddModulesToTabs ( this moduleController, IEnumerable moduleIds, ModuleAddType moduleType, List tabs ) : void
moduleController this The module controller.
moduleIds IEnumerable The module ids.
moduleType ModuleAddType Type of the module.
tabs List The tabs.
return void

DeleteModuleFromTab() public static method

Deletes the module from tab.
public static DeleteModuleFromTab ( this moduleController, DotNetNuke.Entities.Modules.ModuleInfo module, int tabID ) : void
moduleController this The module controller.
module DotNetNuke.Entities.Modules.ModuleInfo The module.
tabID int The tab ID.
return void

DeleteModulesFromTabs() public static method

Deletes the modules from tabs.
public static DeleteModulesFromTabs ( this moduleController, IEnumerable moduleIds, List tabs ) : void
moduleController this The module controller.
moduleIds IEnumerable The module ids.
tabs List The tabs.
return void

GetModulesOnTab() public static method

Gets the modules on tab.
public static GetModulesOnTab ( this moduleController, DotNetNuke.Entities.Tabs.TabInfo tab ) : IEnumerable
moduleController this The module controller.
tab DotNetNuke.Entities.Tabs.TabInfo The tab.
return IEnumerable