Mura CMS 6.1

mura
Class utility

railo-context.Component
        extended by mura.cfobject
            extended by mura.utility

public class utility
extends cfobject

Constructor Summary
init(any configBean, any fileWriter, any javaloader)
 
Method Summary
 numeric arrayFind(array array, string stringa)
 query arrayToQuery(array array)
 void backUp()
 any cfformprotect([any event])
 any checkBCryptHash([any string], [any hash])
 any checkForInstanceOf([any obj], [any name])
 any copyDir(any baseDir='', any destDir='', any excludeList='', any sinceDate='', any excludeHiddenFiles='true')
 string createRedirectID(any theLink)
 void createRequiredSiteDirectories(string siteid='')
 any deleteDir(any baseDir='')
 any displayErrors(struct error='[runtime expression]')
 any dumpTrace()
 struct filterArgs([struct args], [string badwords])
 string fixLineBreaks([any str])
 any fixOracleClobs([any rs])
 struct getNextN([any data], [numeric RecordsPerPage], [numeric startRow], [numeric pageBuffer='5'])
 any getRequestProtocol()
 string getUUID()
 boolean isHTTPS()
 any isValidCFVariableName(String text)
 any joinArrays([any array1], [any array2])
 any listFix([any list])
 void logEvent(string text='', string file='', string type='Information', boolean application='true')
 struct queryRowToStruct(query qry)
 void SetCookie(string name, string value, [any expires=''], [string domain=''], [string path='/'], [boolean secure='false'], [boolean httponly='false'])
          Replacement for cfcookie that handles httponly cookies
 string textPreview(string str, [numeric maxlen='100'], [string finishlist='.|?|!'], [string finishdelim='|'])
 any toBCryptHash([any string], [any logRounds='[runtime expression]'])
 
Methods inherited from class mura.cfobject
commitTracePoint, deleteMethod, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getPlugin, getPluginManager, getServiceFactory, getValue, initTracePoint, injectMethod, invokeMethod, removeValue, setValue, valueExists
 
Methods inherited from class railo-context.Component
 

Constructor Detail

init

public init(any configBean, any fileWriter, any javaloader)

Parameters:
configBean
fileWriter
javaloader
Method Detail

arrayFind

public numeric arrayFind(array array, string stringa)

Parameters:
array
stringa

arrayToQuery

public query arrayToQuery(array array)

Parameters:
array

backUp

public void backUp()


cfformprotect

public any cfformprotect([any event])

Parameters:
event

checkBCryptHash

public any checkBCryptHash([any string], [any hash])

Parameters:
string
hash

checkForInstanceOf

public any checkForInstanceOf([any obj], [any name])

Parameters:
obj
name

copyDir

public any copyDir(any baseDir='', any destDir='', any excludeList='', any sinceDate='', any excludeHiddenFiles='true')

Parameters:
baseDir
destDir
excludeList
sinceDate
excludeHiddenFiles

createRedirectID

public string createRedirectID(any theLink)

Parameters:
theLink

createRequiredSiteDirectories

public void createRequiredSiteDirectories(string siteid='')

Parameters:
siteid

deleteDir

public any deleteDir(any baseDir='')

Parameters:
baseDir

displayErrors

public any displayErrors(struct error='[runtime expression]')

Parameters:
error

dumpTrace

public any dumpTrace()


filterArgs

public struct filterArgs([struct args], [string badwords])

Parameters:
args
badwords

fixLineBreaks

public string fixLineBreaks([any str])

Parameters:
str

fixOracleClobs

public any fixOracleClobs([any rs])

Parameters:
rs

getNextN

public struct getNextN([any data], [numeric RecordsPerPage], [numeric startRow], [numeric pageBuffer='5'])

Parameters:
data
RecordsPerPage
startRow
pageBuffer

getRequestProtocol

public any getRequestProtocol()


getUUID

public string getUUID()


isHTTPS

public boolean isHTTPS()


isValidCFVariableName

public any isValidCFVariableName(String text)

Parameters:
text

joinArrays

public any joinArrays([any array1], [any array2])

Parameters:
array1
array2

listFix

public any listFix([any list])

Parameters:
list

logEvent

public void logEvent(string text='', string file='', string type='Information', boolean application='true')

Parameters:
text
file
type
application

queryRowToStruct

public struct queryRowToStruct(query qry)

Parameters:
qry

SetCookie

public void SetCookie(string name, string value, [any expires=''], [string domain=''], [string path='/'], [boolean secure='false'], [boolean httponly='false'])
Replacement for cfcookie that handles httponly cookies

Parameters:
name
value
expires - ''=session only|now|never|[date]|[number of days]
domain
path
secure
httponly

textPreview

public string textPreview(string str, [numeric maxlen='100'], [string finishlist='.|?|!'], [string finishdelim='|'])

Parameters:
str
maxlen - Maximum length
finishlist - List of finish symbols
finishdelim - Deliemiter for List of finish symbols

toBCryptHash

public any toBCryptHash([any string], [any logRounds='[runtime expression]'])

Parameters:
string
logRounds

Mura CMS 6.1