|
TestBox 2.4.0 | ||||
FRAMES |
railo-context.Componenttestbox.system.util.Util
public class 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 railo-context.Component |
---|
|
Method Detail |
---|
public struct arrayToStruct(array input)
input
- The array to convertpublic any fileLastModified(any filename)
filename
- The targetpublic string getAbsolutePath(any path)
path
- The targetpublic array getAnnotatedMethods(string annotation, struct metadata)
annotation
- The annotation name to look for on methodsmetadata
- The metadata to search (recursively) for the provided annotationpublic any getMixerUtil()
public boolean inThread()
public string ripExtension(any filename)
filename
- The targetpublic string slugify(string str, [numeric maxLength='0'], [string allow=''])
str
- The targetmaxLength
- The maximum number of characters for the slugallow
- A regex safe list of additional characters to allow
|
TestBox 2.4.0 | ||||
FRAMES |