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

Class ActionManager

ActionManager is a helper class that provides common Action Behaviours that can be used by any IActionControl implementation.

Inheritance
System.Object
ActionManager
Namespace: DotNetNuke.UI.Containers
Assembly: DotNetNuke.dll
Syntax
public class ActionManager : object

Constructors

| Improve this Doc View Source

ActionManager(IActionControl)

Initializes a new instance of the ActionManager class.

Declaration
public ActionManager(IActionControl actionControl)
Parameters
Type Name Description
IActionControl actionControl

Properties

| Improve this Doc View Source

ActionControl

Gets or sets the Action Control that is connected to this ActionManager instance.

Declaration
public IActionControl ActionControl { get; set; }
Property Value
Type Description
IActionControl
| Improve this Doc View Source

ModuleContext

Gets the ModuleInstanceContext instance that is connected to this ActionManager instance.

Declaration
protected ModuleInstanceContext ModuleContext { get; }
Property Value
Type Description
ModuleInstanceContext

Methods

| Improve this Doc View Source

DisplayControl(DNNNodeCollection)

DisplayControl determines whether the associated Action control should be displayed.

Declaration
public bool DisplayControl(DNNNodeCollection objNodes)
Parameters
Type Name Description
DNNNodeCollection objNodes
Returns
Type Description
System.Boolean

true if the nodes should be displayed, otherwise false.

| Improve this Doc View Source

GetAction(Int32)

GetAction gets the action associated with the id.

Declaration
public ModuleAction GetAction(int id)
Parameters
Type Name Description
System.Int32 id

The Id.

Returns
Type Description
ModuleAction

The ModuleAction instance or null.

| Improve this Doc View Source

GetAction(String)

GetAction gets the action associated with the commandName.

Declaration
public ModuleAction GetAction(string commandName)
Parameters
Type Name Description
System.String commandName

The command name.

Returns
Type Description
ModuleAction

The ModuleAction instance or null.

| Improve this Doc View Source

GetClientScriptURL(ModuleAction, WebControl)

GetClientScriptURL gets the client script to attach to the control's client side onclick event.

Declaration
public void GetClientScriptURL(ModuleAction action, WebControl control)
Parameters
Type Name Description
ModuleAction action

The Action.

WebControl control

The Control.

| Improve this Doc View Source

IsVisible(ModuleAction)

IsVisible determines whether the action control is Visible.

Declaration
public bool IsVisible(ModuleAction action)
Parameters
Type Name Description
ModuleAction action

The Action.

Returns
Type Description
System.Boolean

true if the action is visible, otherwise false.

| Improve this Doc View Source

ProcessAction(ModuleAction)

ProcessAction processes the action.

Declaration
public bool ProcessAction(ModuleAction action)
Parameters
Type Name Description
ModuleAction action

The Action.

Returns
Type Description
System.Boolean

true if the action was processed, otherwise false (if it's a custom action that can't be found).

| Improve this Doc View Source

ProcessAction(String)

ProcessAction processes the action.

Declaration
public bool ProcessAction(string id)
Parameters
Type Name Description
System.String id

The Id of the Action.

Returns
Type Description
System.Boolean

true if the action was processed, otherwise false (if it's a custom action that can't be found).

Extension Methods

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