C# Class Engage.Dnn.TellAFriend.Utility

Utility Class for Engage: Tell-A-Friend
Afficher le fichier Open project: EngageSoftware/Engage-Tell-a-Friend

Méthodes publiques

Méthode Description
AddJQueryReference ( ) : void

Adds the a reference to jQuery.

AddJavaScriptResource ( Page page, string scriptName ) : void

Adds a reference to the JavaScript (embedded) resource with the given scriptName to the given page.

GetBooleanSetting ( IDictionary settings, string settingName, bool defaultValue ) : bool

Gets the given setting as a bool, or defaultValue if the setting hasn't been set.

GetStringSetting ( Hashtable settings, string settingName, string defaultValue ) : string

Gets the given setting as a string, or defaultValue if the setting is not set.

Private Methods

Méthode Description
GetJavaScriptResourceName ( string scriptName ) : string

Gets the full name of the JavaScript (embedded) resource with the given name, providing a debug version if compiled in Debug mode, and a minified version in Release mode.

Method Details

AddJQueryReference() public static méthode

Adds the a reference to jQuery.
public static AddJQueryReference ( ) : void
Résultat void

AddJavaScriptResource() public static méthode

Adds a reference to the JavaScript (embedded) resource with the given scriptName to the given page.
is null
public static AddJavaScriptResource ( Page page, string scriptName ) : void
page System.Web.UI.Page The page to which the reference needs to be added.
scriptName string Name of the script (without file extension).
Résultat void

GetBooleanSetting() public static méthode

Gets the given setting as a bool, or defaultValue if the setting hasn't been set.
or are null
public static GetBooleanSetting ( IDictionary settings, string settingName, bool defaultValue ) : bool
settings IDictionary The settings collection.
settingName string Name of the setting.
defaultValue bool The default value.
Résultat bool

GetStringSetting() public static méthode

Gets the given setting as a string, or defaultValue if the setting is not set.
public static GetStringSetting ( Hashtable settings, string settingName, string defaultValue ) : string
settings System.Collections.Hashtable The settings collection.
settingName string Name of the setting.
defaultValue string The default value.
Résultat string