|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.core.util.Util
public class Util
The main ColdBox utility library.
| Method Summary | |
|---|---|
void |
abortit()
Facade for cfabort |
struct |
arrayToStruct(array in)
Convert an array to struct argument notation |
void |
convertToColdBox(string family, any target)
Decorate an object as a ColdBox object |
void |
dumpit(any var, [boolean isAbort='false'])
Facade for cfmx dump |
string |
fileLastModified(string filename)
Get the last modified date of a file |
string |
getAbsolutePath(string path)
Turn any system path, either relative or absolute, into a fully qualified one |
any |
getPropertyMixin(string name, [string scope='variables'], [any default])
gets a property |
boolean |
inThread()
Check if you are in cfthread or not |
void |
includeit(string template)
Facade for cfinclude |
void |
injectPropertyMixin(string propertyName, any propertyValue, [string scope='variables'])
injects a property into the passed scope |
void |
injectUDFMixin([any name], [any UDF])
injects a method into the CFC scope |
boolean |
isFamilyType(string family, any target)
Checks if an object is of the passed in family type |
boolean |
isInstanceCheck(any obj, string family='')
Checks if an object is of a certain type of family via inheritance |
any |
placeHolderReplacer(any str, any settings)
PlaceHolder Replacer for strings containing ${} patterns |
void |
relocate(string url, [boolean addtoken='false'])
Facade for cflocation |
void |
rethrowit(any throwObject)
Rethrow an exception |
string |
ripExtension(string filename)
Rip the extension of a filename |
any |
throwit(string message, [string detail=''], [string type='Framework'])
Facade for cfthrow |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Method Detail |
|---|
public void abortit()
public struct arrayToStruct(array in)
in - The array to convertpublic void convertToColdBox(string family, any target)
family - The family to covert it to: handler, plugin, interceptortarget - The target objectpublic void dumpit(any var, [boolean isAbort='false'])
varisAbort - Abort alsopublic string fileLastModified(string filename)
filenamepublic string getAbsolutePath(string path)
path - Abstract pathnamepublic any getPropertyMixin(string name, [string scope='variables'], [any default])
name - The name of the property to inject.scope - The scope to which inject the property to.default - Default value to returnpublic boolean inThread()
public void includeit(string template)
templatepublic void injectPropertyMixin(string propertyName, any propertyValue, [string scope='variables'])
propertyName - The name of the property to inject.propertyValue - The value of the property to injectscope - The scope to which inject the property to.public void injectUDFMixin([any name], [any UDF])
nameUDFpublic boolean isFamilyType(string family, any target)
family - The family to covert it to: handler, plugin, interceptortarget - The target objectpublic boolean isInstanceCheck(any obj, string family='')
obj - The object to evaluatefamily - The family string to checkpublic any placeHolderReplacer(any str, any settings)
str - The string variable to look for replacementssettings - The structure of settings to use in replacingpublic void relocate(string url, [boolean addtoken='false'])
urladdtokenpublic void rethrowit(any throwObject)
throwObject - The exception objectpublic string ripExtension(string filename)
filenamepublic any throwit(string message, [string detail=''], [string type='Framework'])
messagedetailtype
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||