Class SkinControlController
ModuleControlController provides the Business Layer for Module Controls.
Inheritance
System.Object
SkinControlController
Namespace: DotNetNuke.Entities.Modules
Assembly: DotNetNuke.dll
Syntax
public class SkinControlController : object
Methods
| Improve this Doc View SourceDeleteSkinControl(SkinControlInfo)
DeleteSkinControl deletes a Skin Control in the database.
Declaration
public static void DeleteSkinControl(SkinControlInfo skinControl)
Parameters
Type | Name | Description |
---|---|---|
SkinControlInfo | skinControl | The Skin Control to delete. |
GetSkinControl(Int32)
GetSkinControl gets a single Skin Control from the database.
Declaration
public static SkinControlInfo GetSkinControl(int skinControlID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | skinControlID | The ID of the SkinControl. |
Returns
Type | Description |
---|---|
SkinControlInfo | The SkinControlInfo or null. |
GetSkinControlByKey(String)
GetSkinControlByKey gets a single Skin Control from the database.
Declaration
public static SkinControlInfo GetSkinControlByKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the Control. |
Returns
Type | Description |
---|---|
SkinControlInfo | The SkinControlInfo or null. |
GetSkinControlByPackageID(Int32)
GetSkinControlByPackageID gets a single Skin Control from the database.
Declaration
public static SkinControlInfo GetSkinControlByPackageID(int packageID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | packageID | The ID of the Package. |
Returns
Type | Description |
---|---|
SkinControlInfo | The SkinControlInfo or null. |
GetSkinControls()
GetSkinControls gets all the Skin Controls from the database.
Declaration
public static Dictionary<string, SkinControlInfo> GetSkinControls()
Returns
Type | Description |
---|---|
Dictionary<System.String, SkinControlInfo> | A |
SaveSkinControl(SkinControlInfo)
SaveSkinControl updates a Skin Control in the database.
Declaration
public static int SaveSkinControl(SkinControlInfo skinControl)
Parameters
Type | Name | Description |
---|---|---|
SkinControlInfo | skinControl | The Skin Control to save. |
Returns
Type | Description |
---|---|
System.Int32 | The skin control ID. |