MagicCMS Documentation

MagicUtils Members

The MagicUtils type exposes the following members.

Methods


  Name Description
Public method Static member AnchorElement
Create an Anchor Element
Public method Static member capAndTrunc
Caps and trunk a string.
Public method Static member ColorLighten
Lighten color.
Public method Static member CreateRandomPassword
Creates a random password.
Public method Static member CreateUniqueFileName
Creates an unique file name.
Public method Static member FileSizeToStr
Files size pretty formatted to string.
Public method Static member getImageList(String, Boolean)
Gets the image list from folder.
Public method Static member getImageList(String)
Gets the image list from folder.
Public method Static member HTMLElement(String, String, String, String)
Create an HTML element.
Public method Static member HTMLElement(String, String, String)
Create an HTML element.
Public method Static member HTMLElement(String, String)
Create an HTML element.
Public method Static member isMobileBrowser
Determines whether is mobile browser.
Public method Static member LoadScript
Loads a script avoiding to load already loaded scripts.
Public method Static member nullToStr(String)
Convert null string to empty string.
Public method Static member nullToStr(String, String)
Convert null string to string.
Public method Static member ParseISO8601String
Public method Static member RenderControlToString
Convert a Web Control or HTML Control to string
Public method Static member strToJSON(Object)
Strings to json.
Public method Static member strToJSON(String)
Strings to json.

Properties


  Name Description
Public property Static member MagicAllowedFiletypes
Gets the allowed file types from Web.config.
Public property Static member MagicConnectionString
Gets the connection string from Web.config.