The Globals type exposes the following members.

Constructors

  NameDescription
Public methodGlobals
DotNetNuke.Common.Globals

Methods

  NameDescription
Public methodStatic memberAccessDeniedURL()()()()
Get the URL to show the "access denied" message.
Public methodStatic memberAccessDeniedURL(String)
Get the URL to show the "access denied" message.
Public methodStatic memberAddFile Obsolete.
Public methodStatic memberAddHTTP
Adds the current request's protocol ("http://" or "https://") to the given URL, if it does not already have a protocol specified
Public methodStatic memberAddPort
Adds the port.
Public methodStatic memberApplicationURL()()()()
Generates the Application root url (including the tab/page)
Public methodStatic memberApplicationURL(Int32)
Generates the Application root url (including the tab/page)
Public methodStatic memberBuildCrossTabDataSet(String, IDataReader, String, String, String, String, String, String, String)
Builds the cross tab dataset.
Public methodStatic memberBuildCrossTabDataSet(String, IDataReader, String, String, String, String, String, String, String, CultureInfo)
converts a data reader with serialized fields into a typed data set
Public methodStatic memberCleanFileName(String)
Cleans the name of the file.
Public methodStatic memberCleanFileName(String, String)
Cleans the name of the file.
Public methodStatic memberCleanFileName(String, String, String)
Cleans the name of the file.
Public methodStatic memberCleanName
CleanName - removes characters from Module/Tab names that are being used for file names in Module/Tab Import/Export.
Public methodStatic memberCloakText
Cloaks the text, obfuscate sensitive data to prevent collection by robots and spiders and crawlers
Public methodStatic memberConvertDataReaderToDataSet
Converts the datareader to dataset.
Public methodStatic memberConvertDataReaderToDataTable(IDataReader)
Converts the datareader to datatable.
Public methodStatic memberConvertDataReaderToDataTable(IDataReader, Boolean)
Converts the datareader to datatable.
Public methodStatic memberCreateRSS
Creates the RSS.
Public methodStatic memberCreateValidClass
CreateValidClass - removes characters from Module/Tab names which are invalid for use as an XHTML class attribute / CSS class selector value and optionally prepends the letter 'A' if the first character is not alphabetic. This differs from CreateValidID which replaces invalid characters with an underscore and replaces the first letter with an 'A' if it is not alphabetic
Public methodStatic memberCreateValidID
Creates the valid ID.
Public methodStatic memberDateToString
Dates to string.
Public methodStatic memberDeleteFilesRecursive
Deletes the files recursive which match the filter, will not delete folders and will ignore folder which is hidden or system.
Public methodStatic memberDeleteFolderRecursive
Deletes the folder recursive, include the folder itself will be deleted.
Public methodStatic memberDeserializeHashTableBase64
DeserializeHashTableBase64 deserializes a Hashtable using Binary Formatting
Public methodStatic memberDeserializeHashTableXml
DeserializeHashTableXml deserializes a Hashtable using Xml Serialization
Public methodStatic memberEncodeReservedCharacters
Encodes the reserved characters.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFindControlRecursive
Finds the control recursive from child to parent.
Public methodStatic memberFindControlRecursiveDown
Searches control hierarchy from top down to find a control matching the passed in name
Public methodStatic memberFindDatabaseVersion
Finds the database version.
Public methodStatic memberFormatAddress
Formats the address on a single line ( ie. Unit, Street, City, Region, Country, PostalCode )
Public methodStatic memberFormatEmail Obsolete.
Public methodStatic memberFormatHelpUrl(String, PortalSettings, String)
Formats the help URL, adding query-string parameters and a protocol (if missing).
Public methodStatic memberFormatHelpUrl(String, PortalSettings, String, String)
Formats the help URL, adding query-string parameters and a protocol (if missing).
Public methodStatic memberFormatVersion(Version)
Formats the system.version into the standard format nn.nn.nn
Public methodStatic memberFormatVersion(Version, Boolean)
Formats the version.
Public methodStatic memberFormatVersion(Version, String, Int32, String)
Formats a version into the standard format nn.nn.nn
Public methodStatic memberFormatWebsite Obsolete.
Public methodStatic memberFriendlyUrl(TabInfo, String)
Generates the correctly formatted friendly URL.
Public methodStatic memberFriendlyUrl(TabInfo, String, PortalSettings)
Generates the correctly formatted friendly URL
Public methodStatic memberFriendlyUrl(TabInfo, String, String)
Generates the correctly formatted friendly URL
Public methodStatic memberFriendlyUrl(TabInfo, String, String, PortalSettings)
Generates the correctly formatted friendly URL
Public methodStatic memberFriendlyUrl(TabInfo, String, String, String)
Generates the correctly formatted friendly url
Public methodStatic memberGenerateTabPath
GenerateTabPath generates the TabPath used in Friendly URLS
Public methodStatic memberGetAbsoluteServerPath
Gets the absolute server path.
Public methodStatic memberGetApplicationName()()()()
Gets the ApplicationName for the MemberRole API.
Public methodStatic memberGetApplicationName(Int32)
Gets the ApplicationName for the MemberRole API.
Public methodStatic memberGetContent
Gets the content.
Public methodStatic memberGetDatabaseVersion()()()() Obsolete.
Public methodStatic memberGetDatabaseVersion(String) Obsolete.
Public methodStatic memberGetDBConnectionString Obsolete.
Public methodStatic memberGetDesktopModuleByName Obsolete.
Public methodStatic memberGetDomainName(HttpRequest)
Gets the name of the domain.
Public methodStatic memberGetDomainName(HttpRequestBase)
Gets the name of the domain.
Public methodStatic memberGetDomainName(HttpRequest, Boolean)
returns the domain name of the current request ( ie. www.domain.com or 207.132.12.123 or www.domain.com/directory if subhost )
Public methodStatic memberGetDomainName(HttpRequestBase, Boolean)
returns the domain name of the current request ( ie. www.domain.com or 207.132.12.123 or www.domain.com/directory if subhost )
Public methodStatic memberGetExternalRequest(String)
Gets the external request.
Public methodStatic memberGetExternalRequest(String, NetworkCredential)
Gets the external request.
Public methodStatic memberGetFileList()()()()
Gets the file list.
Public methodStatic memberGetFileList(Int32)
Gets the file list.
Public methodStatic memberGetFileList(Int32, String)
Gets the file list.
Public methodStatic memberGetFileList(Int32, String, Boolean)
Gets the file list.
Public methodStatic memberGetFileList(DirectoryInfo, String, Boolean) Obsolete.
Public methodStatic memberGetFileList(Int32, String, Boolean, String)
Gets the file list.
Public methodStatic memberGetFileList(Int32, String, Boolean, String, Boolean)
Gets the file list.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetHashValue
Gets the hash value.
Public methodStatic memberGetHelpText
Gets the help text.
Public methodStatic memberGetHostPortalSettings
Gets the host portal settings.
Public methodStatic memberGetLastAppliedIteration
Public methodStatic memberGetMediumDate
Gets the medium date by current culture.
Public methodStatic memberGetOnLineHelp
Gets the online help url.
Public methodStatic memberGetPortalDomainName
Gets the portal domain name.
Public methodStatic memberGetPortalSettings
Gets the portal settings.
Public methodStatic memberGetPortalTabs(ArrayList, Boolean, Boolean) Obsolete.
Public methodStatic memberGetPortalTabs(ArrayList, Boolean, Boolean, Boolean, Boolean) Obsolete.
Public methodStatic memberGetPortalTabs(Int32, Boolean, Boolean, Boolean, Boolean, Boolean) Obsolete.
Public methodStatic memberGetPortalTabs(ArrayList, Int32, Boolean, Boolean, Boolean, Boolean, Boolean) Obsolete.
Public methodStatic memberGetPortalTabs(Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) Obsolete.
Public methodStatic memberGetRoleName
Gets the name of the role.
Public methodStatic memberGetShortDate
Gets the short date.
Public methodStatic memberGetStatus Obsolete.
GetStatus - determines whether an upgrade/install is required and sest the Database Version and Status accordingly
Public methodStatic memberGetSubFolderPath(String) Obsolete.
Public methodStatic memberGetSubFolderPath(String, Int32)
Returns the folder path under the root for the portal
Public methodStatic memberGetTotalRecords
The GetTotalRecords method gets the number of Records returned.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetUpgradeStatus Obsolete.
Public methodStatic memberGetURLType
Returns the type of URl (T=other tab, F=file, U=URL, N=normal)
Public methodStatic memberHTTPPOSTEncode
Encode the post url
Public methodStatic memberImportFile
ImportFile - converts a file url (/Portals/0/somefile.gif) to the appropriate FileID=xx identification for use in importing portals, tabs and modules
Public methodStatic memberImportUrl
Url's as internal links to Files, Tabs and Users should only be imported if those files, tabs and users exist. This function parses the url, and checks whether the internal links exist. If the link does not exist, the function will return an empty string
Public methodStatic memberIncrementalVersionExists
Public methodStatic memberIsAdminControl
Determines whether current request contains admin control information.
Public methodStatic memberIsAdminSkin()()()()
Determines whether current request use admin skin.
Public methodStatic memberIsAdminSkin(Boolean) Obsolete.
Public methodStatic memberIsEditMode
Returns whether the current tab is in EditMode
Public methodStatic memberIsHostTab
Check whether the specific page is a host page.
Public methodStatic memberIsLayoutMode
Returns whether the current tab is in LayoutMode
Public methodStatic memberIsTabPreview Obsolete.
Returns whether the tab being displayed is in preview mode
Public methodStatic memberLinkClick(String, Int32, Int32)
Gets Link click url.
Public methodStatic memberLinkClick(String, Int32, Int32, Boolean)
Gets Link click url.
Public methodStatic memberLinkClick(String, Int32, Int32, Boolean, Boolean)
Gets Link click url.
Public methodStatic memberLinkClick(String, Int32, Int32, Boolean, String)
Gets Link click url.
Public methodStatic memberLinkClick(String, Int32, Int32, Boolean, Boolean, Int32, Boolean, String)
Gets Link click url.
Public methodStatic memberLinkClickURL Obsolete.
Public methodStatic memberLoginURL(String, Boolean)
Gets the login URL.
Public methodStatic memberLoginURL(String, Boolean, PortalSettings)
Gets the login URL.
Public methodStatic memberManageTokenUploadDirectory
injects the upload directory into raw HTML for a single token
Public methodStatic memberManageUploadDirectory
injects the upload directory into raw HTML for src and background tags
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNavigateURL()()()()
Gets the URL to the current page.
Public methodStatic memberNavigateURL(Int32)
Gets the URL to the given page.
Public methodStatic memberNavigateURL(String)
Gets the URL to show the control associated with the given control key.
Public methodStatic memberNavigateURL(Int32, Boolean)
Gets the URL to the given page.
Public methodStatic memberNavigateURL(Int32, String)
Gets the URL to show the control associated with the given control key on the given page.
Public methodStatic memberNavigateURL(String, array<String>[]()[][])
Gets the URL to show the control associated with the given control key.
Public methodStatic memberNavigateURL(Int32, String, array<String>[]()[][])
Gets the URL to show the given page.
Public methodStatic memberNavigateURL(Int32, PortalSettings, String, array<String>[]()[][])
Gets the URL to show the given page.
Public methodStatic memberNavigateURL(Int32, Boolean, PortalSettings, String, array<String>[]()[][])
Gets the URL to show the given page.
Public methodStatic memberNavigateURL(Int32, Boolean, PortalSettings, String, String, array<String>[]()[][])
Gets the URL to show the given page.
Public methodStatic memberNavigateURL(Int32, Boolean, PortalSettings, String, String, String, array<String>[]()[][])
Gets the URL to show the given page.
Public methodStatic memberPreventSQLInjection Obsolete.
Public methodStatic memberProfileURL Obsolete.
Public methodStatic memberQueryStringDecode
UrlDecode query string
Public methodStatic memberQueryStringEncode
UrlEncode query string
Public methodStatic memberRedirect
Redirects the specified URL.
Public methodStatic memberRegisterURL
Gets Register URL.
Public methodStatic memberResolveUrl
Generates the correctly formatted url
Public methodStatic memberSerializeHashTableBase64
SerializeHashTableBase64 serializes a Hashtable using Binary Formatting
Public methodStatic memberSerializeHashTableXml
SerializeHashTableXml serializes a Hashtable using Xml Serialization
Public methodStatic memberSetApplicationName(Int32)
Sets the ApplicationName for the MemberRole API
Public methodStatic memberSetApplicationName(String)
Sets the ApplicationName for the MemberRole API
Public methodStatic memberSetFormFocus
Sets the form focus.
Public methodStatic memberSetStatus
Sets the status.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberUpdateDataBaseVersion
Updates the database version.
Public methodStatic memberUpdateDataBaseVersionIncrement
Updates the database version.
Public methodStatic memberUploadFile Obsolete.
Public methodStatic memberUsePortNumber
Determin whether use port number by the value in config file.
Public methodStatic memberUserProfilePicFormattedUrl Obsolete.
Return User Profile Picture Formatted Url. UserId, width and height can be passed to build a formatted Avatar Url.
Public methodStatic memberUserProfilePicRelativeUrl()()()() Obsolete.
Return User Profile Picture relative Url. UserId, width and height can be passed to build a formatted relative Avatar Url.
Public methodStatic memberUserProfilePicRelativeUrl(Boolean) Obsolete.
Return User Profile Picture relative Url. UserId, width and height can be passed to build a formatted relative Avatar Url.
Public methodStatic memberUserProfileURL
Gets User profile URL.
Public methodStatic memberValidateLoginTabID
Check whether the tab contains "Account Login" module.
Public methodStatic memberValidateModuleInTab
Check whether the tab contains specific module.
Public methodStatic memberXMLEncode Obsolete.

Extension Methods

  NameDescription
Public Extension MethodToJson
Extension method on object that serializes the value to Json. Note the type must be marked Serializable or include a DataContract attribute.
(Defined by JsonExtensionsWeb.)

Fields

  NameDescription
Public fieldStatic memberBaseTagRegex
Public fieldStatic memberEmailValidatorRegex
Public fieldStatic memberFileEscapingRegex
Public fieldStatic memberFileExtensionRegex
Public fieldStatic memberglbAboutPage
About page name
Public fieldStatic memberglbAllowControlPanelToDetermineVisibility
Default setting to determine if selected control panel is loaded to evaluate visibility
Public fieldStatic memberglbConfigFolder
Config files folder
Public fieldStatic memberglbContainersPath
Default container folder
Public fieldStatic memberglbDefaultControlPanel
Default control panel
Public fieldStatic memberglbDefaultPage
Default page name
Public fieldStatic memberglbDefaultPane
Default pane name
Public fieldStatic memberglbDotNetNukeConfig
DotNetNuke config file
Public fieldStatic memberglbEmailRegEx
Email address regex pattern
Public fieldStatic memberglbHostSkinFolder
Default host skin folder
Public fieldStatic memberglbProtectedExtension
extension of protected files
Public fieldStatic memberglbRoleAllUsers
Global role id for all users
Public fieldStatic memberglbRoleAllUsersName
Global role name for all users
Public fieldStatic memberglbRoleNothing
Global role id by default
Public fieldStatic memberglbRoleSuperUser
Global role id for super user
Public fieldStatic memberglbRoleSuperUserName
Global ro name for super user
Public fieldStatic memberglbRoleUnauthUser
Global role id for unauthenticated users
Public fieldStatic memberglbRoleUnauthUserName
Global role name for unauthenticated users
Public fieldStatic memberglbScriptFormat
format of a script tag
Public fieldStatic memberglbSkinsPath
Default skin folder
Public fieldStatic memberglbSuperUserAppName
Default portal id for super user
Public fieldStatic memberglbUserNameRegEx
User Name regex pattern
Public fieldStatic memberInvalidCharacters
Public fieldStatic memberInvalidInitialCharacters
Public fieldStatic memberNumberMatchRegex

Properties

  NameDescription
Public propertyStatic memberApplicationMapPath
Gets or sets the application map path.
Public propertyStatic memberApplicationPath
Gets the application path.
Public propertyStatic memberDatabaseEngineVersion
Gets or sets the database engine version.
Public propertyStatic memberDataBaseVersion
Gets the database version.
Public propertyStatic memberDefaultContainer
Gets the default container.
Public propertyStatic memberDefaultSkin Obsolete.
Public propertyStatic memberDesktopModulePath
Gets the desktop module path.
Public propertyStatic memberElapsedSinceAppStart
Public propertyStatic memberglbImageFileTypes
Image file types
Public propertyStatic memberHostMapPath
Gets or sets the host map path.
Public propertyStatic memberHostPath
Gets or sets the host path.
Public propertyStatic memberHostSettings Obsolete.
Public propertyStatic memberIISAppName
Gets or sets the name of the IIS app.
Public propertyStatic memberImagePath
Gets the image path.
Public propertyStatic memberInstallMapPath
Gets or sets the install map path.
Public propertyStatic memberInstallPath
Gets or sets the install path.
Public propertyStatic memberNETFrameworkVersion
Gets or sets the NET framework version.
Public propertyStatic memberOperatingSystemVersion
Gets or sets the operating system version.
Public propertyStatic memberPerformanceSetting Obsolete.
Public propertyStatic memberServerName
Gets or sets the name of the server.
Public propertyStatic memberStatus
Gets the status of application.
Public propertyStatic memberWebFarmEnabled Obsolete.

See Also