box.system.plugins.concurrent.Callable interface">
|
ColdBox Platform Version 3.1.0 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.FrameworkSupertype
coldbox.system.Plugin
coldbox.system.plugins.MessageBox
public class MessageBox
This is the MessageBox plugin. It uses the session/client scope to save messages.
| Constructor Summary | |
|---|---|
init(any controller)
Constructor |
|
| Method Summary | |
|---|---|
void |
append(string message)
Append a message to the MessageBox |
void |
appendArray(Array messageArray)
Append an array of messages to the MessageBox |
void |
clearMessage()
Clears the message structure by deleting it from the session scope |
void |
error([string message=''], [Array messageArray])
Facade to setmessage with error type |
private any |
flattenMessageArray(Array messageArray)
|
any |
getMessage()
Returns a structure of the message if it exists, else a blank structure |
void |
info([string message=''], [Array messageArray])
Facade to setmessage with info type |
boolean |
isEmpty()
Checks wether the MessageBox is empty or not |
any |
renderMessage(string type, [string message=''], [Array messageArray])
Renders a messagebox immediately for you with the passed in arguments |
any |
renderit([boolean clearMessage='true'])
Renders the message box and clears the message structure by default |
void |
setMessage(string type, [string message=''], [Array messageArray])
Create a new MessageBox |
void |
warn([string message=''], [Array messageArray])
Facade to setmessage with warning type |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any controller)
controller - coldbox.system.web.Controller| Method Detail |
|---|
public void append(string message)
message - The message to append, it does not include any breaks or delimiters. You must send that.public void appendArray(Array messageArray)
messageArray - The array of messages to append. You must send that.public void clearMessage()
public void error([string message=''], [Array messageArray])
message - The message to show.messageArray - You can also send in an array of messages to render separated by a private any flattenMessageArray(Array messageArray)
messageArray - Array of messages to flattenpublic any getMessage()
public void info([string message=''], [Array messageArray])
message - The message to show.messageArray - You can also send in an array of messages to render separated by a public boolean isEmpty()
public any renderMessage(string type, [string message=''], [Array messageArray])
type - The message type.Available types [error][warning][info]message - The message to show.messageArray - You can also send in an array of messages to render separated by a public any renderit([boolean clearMessage='true'])
clearMessage - Flag to clear the message structure or not after rendering. Default is true.public void setMessage(string type, [string message=''], [Array messageArray])
type - The message type.Available types [error][warning][info]message - The message to show.messageArray - You can also send in an array of messages to render separated by a public void warn([string message=''], [Array messageArray])
message - The message to show.messageArray - You can also send in an array of messages to render separated by a
|
ColdBox Platform Version 3.1.0 | ||||
| FRAMES | |||||