C# Class DotNetNuke.Modules.UserDefinedTable.Components.Utilities

Mostra file Open project: DNNCommunity/DNN.FormAndList

Public Methods

Method Description
AsBoolean ( this value ) : bool
AsBoolean ( this value, bool @default ) : bool
AsInt ( this value ) : int

returns Null.NullInteger, when value is nothing, otherwise tries to convert value to Integer and returns it.

AsInt ( this value, int @default ) : int

returns default, when value is nothing, otherwise tries to convert value to Integer and returns it.

AsString ( this value ) : string

returns default, when value is nothing, otherwise tries to convert value to string and returns it.

AsString ( this value, string @default ) : string
AsString ( this row, string columnname, string @default ) : string
GetFolder ( DotNetNuke.Entities.Portals.PortalSettings portalsettings, string homeFolderName ) : IFolderInfo
GetFolder ( DotNetNuke.Entities.Portals.PortalSettings portalsettings, string homeFolderName, string defaultFolderName ) : IFolderInfo
HasWritePermission ( string folder, int portalid ) : bool
IconURL ( string iconKey ) : string
Like ( this text, string pattern ) : System.Boolean
ReadStringFromFile ( string homeFilePath, int portalId ) : string
SaveScript ( string fileContent, string fileName, IFolderInfo folder, bool forceOverWrite ) : bool
UrlHexDecode ( this value ) : string
UrlHexEncode ( this value ) : string
ValidateRegEx ( this value, string pattern ) : bool

Method Details

AsBoolean() public static method

public static AsBoolean ( this value ) : bool
value this
return bool

AsBoolean() public static method

public static AsBoolean ( this value, bool @default ) : bool
value this
@default bool
return bool

AsInt() public static method

returns Null.NullInteger, when value is nothing, otherwise tries to convert value to Integer and returns it.
public static AsInt ( this value ) : int
value this object containing value to return
return int

AsInt() public static method

returns default, when value is nothing, otherwise tries to convert value to Integer and returns it.
public static AsInt ( this value, int @default ) : int
value this object containing value to return
@default int
return int

AsString() public static method

returns default, when value is nothing, otherwise tries to convert value to string and returns it.
public static AsString ( this value ) : string
value this
return string

AsString() public static method

public static AsString ( this value, string @default ) : string
value this
@default string
return string

AsString() public static method

public static AsString ( this row, string columnname, string @default ) : string
row this
columnname string
@default string
return string

GetFolder() public static method

public static GetFolder ( DotNetNuke.Entities.Portals.PortalSettings portalsettings, string homeFolderName ) : IFolderInfo
portalsettings DotNetNuke.Entities.Portals.PortalSettings
homeFolderName string
return IFolderInfo

GetFolder() public static method

public static GetFolder ( DotNetNuke.Entities.Portals.PortalSettings portalsettings, string homeFolderName, string defaultFolderName ) : IFolderInfo
portalsettings DotNetNuke.Entities.Portals.PortalSettings
homeFolderName string
defaultFolderName string
return IFolderInfo

HasWritePermission() public static method

public static HasWritePermission ( string folder, int portalid ) : bool
folder string
portalid int
return bool

IconURL() public static method

public static IconURL ( string iconKey ) : string
iconKey string
return string

Like() public static method

public static Like ( this text, string pattern ) : System.Boolean
text this
pattern string
return System.Boolean

ReadStringFromFile() static public method

static public ReadStringFromFile ( string homeFilePath, int portalId ) : string
homeFilePath string
portalId int
return string

SaveScript() public static method

public static SaveScript ( string fileContent, string fileName, IFolderInfo folder, bool forceOverWrite ) : bool
fileContent string
fileName string
folder IFolderInfo
forceOverWrite bool
return bool

UrlHexDecode() public static method

public static UrlHexDecode ( this value ) : string
value this
return string

UrlHexEncode() public static method

public static UrlHexEncode ( this value ) : string
value this
return string

ValidateRegEx() public static method

public static ValidateRegEx ( this value, string pattern ) : bool
value this
pattern string
return bool