lucee.Component
commandbox.system.util.Print
commandbox.system.util.PrintBuffer
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I am a helper object that wraps the print helper. Instead of returning text, I accumulate it in a variable that can be retrieved at the end.
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
job
|
true
|
false
|
|
any
|
objectID
|
true
|
false
|
|
any
|
result
Result buffer.
|
true
|
false
|
|
any
|
shell
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
|
|
| Method Summary | |
|---|---|
any
|
clear()
|
any
|
columns(array items, [any formatUDF='[runtime expression]'])
|
string
|
getJob()
|
string
|
getObjectID()
|
any
|
getResult()
|
string
|
getShell()
|
any
|
onMissingMethod([any missingMethodName], [any missingMethodArguments])
|
any
|
setJob(any job)
|
any
|
setObjectID(any objectID)
|
any
|
setResult(any result)
|
any
|
setShell(any shell)
|
any
|
table(any data='[runtime expression]', [any includedHeaders=''], [any headerNames=''], [boolean debug='false'])
Outputs a table to the screen. |
any
|
toConsole()
|
any
|
tree(struct data, [any formatUDF='[runtime expression]'])
|
| Methods inherited from class commandbox.system.util.Print |
|---|
| _onMissingMethod, _tree, get256Color, getANSIAttribute, indent, padRight, unansi |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyinject - interactiveJobserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueResult buffer
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - shellserializable - true| Method Detail |
|---|
columns
in class
Print
itemsformatUDF
onMissingMethod
in class
Print
missingMethodNamemissingMethodArgumentsjobobjectIDresultshellOutputs a table to the screen an array in the correct order matching the number of headers or a struct with keys matching the headers.
table
in class
Print
data - An array of data for the table. Each item in the array may either beincludedHeadersheaderNamesdebug
tree
in class
Print
data - top level structformatUDF