Class SkinController
Handles the Business Control Layer for Skins.
Inheritance
System.Object
SkinController
Assembly: DotNetNuke.dll
Syntax
public class SkinController : object
Properties
|
Improve this Doc
View Source
RootContainer
Handles the Business Control Layer for Skins.
Declaration
public static string RootContainer { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RootSkin
Handles the Business Control Layer for Skins.
Declaration
public static string RootSkin { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AddSkin(Int32, String)
Handles the Business Control Layer for Skins.
Declaration
public static int AddSkin(int skinPackageID, string skinSrc)
Parameters
Type |
Name |
Description |
System.Int32 |
skinPackageID |
|
System.String |
skinSrc |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
AddSkinPackage(SkinPackageInfo)
Handles the Business Control Layer for Skins.
Declaration
public static int AddSkinPackage(SkinPackageInfo skinPackage)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CanDeleteSkin(String, String)
Handles the Business Control Layer for Skins.
Declaration
public static bool CanDeleteSkin(string folderPath, string portalHomeDirMapPath)
Parameters
Type |
Name |
Description |
System.String |
folderPath |
|
System.String |
portalHomeDirMapPath |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DeleteSkin(Int32)
Handles the Business Control Layer for Skins.
Declaration
public static void DeleteSkin(int skinID)
Parameters
Type |
Name |
Description |
System.Int32 |
skinID |
|
|
Improve this Doc
View Source
DeleteSkinPackage(SkinPackageInfo)
Handles the Business Control Layer for Skins.
Declaration
public static void DeleteSkinPackage(SkinPackageInfo skinPackage)
Parameters
|
Improve this Doc
View Source
Handles the Business Control Layer for Skins.
Declaration
public static string FormatMessage(string title, string body, int level, bool isError)
Parameters
Type |
Name |
Description |
System.String |
title |
|
System.String |
body |
|
System.Int32 |
level |
|
System.Boolean |
isError |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Handles the Business Control Layer for Skins.
Declaration
public static string FormatSkinPath(string skinSrc)
Parameters
Type |
Name |
Description |
System.String |
skinSrc |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Handles the Business Control Layer for Skins.
Declaration
public static string FormatSkinSrc(string skinSrc, PortalSettings portalSettings)
Parameters
Type |
Name |
Description |
System.String |
skinSrc |
|
PortalSettings |
portalSettings |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetDefaultAdminContainer()
Handles the Business Control Layer for Skins.
Declaration
public static string GetDefaultAdminContainer()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetDefaultAdminSkin()
Handles the Business Control Layer for Skins.
Declaration
public static string GetDefaultAdminSkin()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetDefaultPortalContainer()
Handles the Business Control Layer for Skins.
Declaration
public static string GetDefaultPortalContainer()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetDefaultPortalSkin()
Handles the Business Control Layer for Skins.
Declaration
public static string GetDefaultPortalSkin()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetSkinByPackageID(Int32)
Handles the Business Control Layer for Skins.
Declaration
public static SkinPackageInfo GetSkinByPackageID(int packageID)
Parameters
Type |
Name |
Description |
System.Int32 |
packageID |
|
Returns
|
Improve this Doc
View Source
GetSkinPackage(Int32, String, String)
Handles the Business Control Layer for Skins.
Declaration
public static SkinPackageInfo GetSkinPackage(int portalId, string skinName, string skinType)
Parameters
Type |
Name |
Description |
System.Int32 |
portalId |
|
System.String |
skinName |
|
System.String |
skinType |
|
Returns
|
Improve this Doc
View Source
GetSkins(PortalInfo, String, SkinScope)
Handles the Business Control Layer for Skins.
Declaration
public static List<KeyValuePair<string, string>> GetSkins(PortalInfo portalInfo, string skinRoot, SkinScope scope)
Parameters
Returns
Type |
Description |
List<KeyValuePair<System.String, System.String>> |
|
|
Improve this Doc
View Source
IsGlobalSkin(String)
Determines if a given skin is defined as a global skin.
Declaration
public static bool IsGlobalSkin(string skinSrc)
Parameters
Type |
Name |
Description |
System.String |
skinSrc |
This is the app relative path and filename of the skin to be checked.
|
Returns
Type |
Description |
System.Boolean |
True if the skin is located in the HostPath child directories.
|
|
Improve this Doc
View Source
SetSkin(String, Int32, SkinType, String)
Handles the Business Control Layer for Skins.
Declaration
public static void SetSkin(string skinRoot, int portalId, SkinType skinType, string skinSrc)
Parameters
Type |
Name |
Description |
System.String |
skinRoot |
|
System.Int32 |
portalId |
|
SkinType |
skinType |
|
System.String |
skinSrc |
|
|
Improve this Doc
View Source
UpdateSkin(Int32, String)
Handles the Business Control Layer for Skins.
Declaration
public static void UpdateSkin(int skinID, string skinSrc)
Parameters
Type |
Name |
Description |
System.Int32 |
skinID |
|
System.String |
skinSrc |
|
|
Improve this Doc
View Source
UpdateSkinPackage(SkinPackageInfo)
Handles the Business Control Layer for Skins.
Declaration
public static void UpdateSkinPackage(SkinPackageInfo skinPackage)
Parameters
|
Improve this Doc
View Source
UploadLegacySkin(String, String, String, Stream)
Handles the Business Control Layer for Skins.
Declaration
public static string UploadLegacySkin(string rootPath, string skinRoot, string skinName, Stream inputStream)
Parameters
Type |
Name |
Description |
System.String |
rootPath |
|
System.String |
skinRoot |
|
System.String |
skinName |
|
Stream |
inputStream |
|
Returns
Type |
Description |
System.String |
|
Extension Methods