railo-context.Component testbox.system.util.Util
The main ColdBox utility library filled with lots of nice goodies.
Method Summary | |
---|---|
struct
|
arrayToStruct(array in)
Convert an array to struct argument notation. |
string
|
fileLastModified(any filename)
Get the last modified date of a file. |
string
|
getAbsolutePath(any path)
Turn any system path, either relative or absolute, into a fully qualified one. |
any
|
getMixerUtil()
Get the mixer utility. |
boolean
|
inThread()
Check if you are in cfthread or not for any CFML Engine. |
string
|
ripExtension(any filename)
Rip the extension of a filename. |
string
|
slugify(string str, [numeric maxLength='0'], [string allow=''])
Create a URL safe slug from a string. |
Methods inherited from class railo-context.Component |
---|
None |
Method Detail |
---|
Convert an array to struct argument notation
in
- The array to convertGet the last modified date of a file
filename
Turn any system path, either relative or absolute, into a fully qualified one
path
Get the mixer utility
Check if you are in cfthread or not for any CFML Engine
Rip the extension of a filename.
filename
Create a URL safe slug from a string
str
- The string to slugifymaxLength
- The maximum number of characters for the slugallow
- a regex safe list of additional characters to allow