lucee.Component testbox.system.util.Util
Copyright Since 2005 TestBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- Mail Utility library for TestBox
Method Summary | |
---|---|
struct
|
arrayToStruct(array input)
Convert an array to struct argument notation. |
any
|
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. |
array
|
getAnnotatedMethods(string annotation, struct metadata)
Find all methods on a given metadata and it's parents with a given annotation. |
any
|
getMixerUtil()
Get the mixer utility object instance. |
boolean
|
inThread()
Check if you are in cfthread or not for any CFML Engine. |
string
|
ripExtension(any filename)
Rip an 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 lucee.Component |
---|
None |
Method Detail |
---|
Convert an array to struct argument notation
input
- The array to convertGet the last modified date of a file
filename
- The targetTurn any system path, either relative or absolute, into a fully qualified one
path
- The targetFind all methods on a given metadata and it's parents with a given annotation
annotation
- The annotation name to look for on methodsmetadata
- The metadata to search (recursively) for the provided annotationGet the mixer utility object instance. It lazy loads into variables scope for faster execution next time.
Check if you are in cfthread or not for any CFML Engine
Rip an extension of a filename
filename
- The targetCreate a URL safe slug from a string
str
- The targetmaxLength
- The maximum number of characters for the slugallow
- A regex safe list of additional characters to allow