ZMObject
|
+--ZMMessages
public class ZMMessages
extends ZMObject
| Field Summary | |
|---|---|
| final mixed | |
| final mixed | |
| final mixed | |
| final mixed | |
| final mixed | |
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| void | add(string text, string type, string ref) Generic add a message. |
| void | addAll(array messages) Add a group of messages. |
| void | error(string text, string ref) Add an error message. |
| array | getMessages(string ref) Get all messages. |
| boolean | hasMessages(string ref) Checks if there are any messages available. |
| static void | instance() Get instance. |
| void | msg(string text, string ref) Add a default message. |
| void | success(string text, string ref) Add a success message. |
| void | warn(string text, string ref) Add a warning message. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public final mixed T_ERROR = 'error'
public final mixed T_GLOBAL = 'global'
public final mixed T_MESSAGE = 'msg'
public final mixed T_SUCCESS = 'success'
public final mixed T_WARN = 'warn'
public ZMMessages()
Create new instance. /
public void add(string text, string type, string ref)
Generic add a message.
ZMMessages::T_MESSAGE.ZMMessages::T_GLOBAL.public void addAll(array messages)
Add a group of messages.
ZMMessage instances.public void error(string text, string ref)
Add an error message.
ZMMessages::T_GLOBAL.public array getMessages(string ref)
Get all messages.
null for all.ZMMessage instances.public boolean hasMessages(string ref)
Checks if there are any messages available.
null for all.true if messages are available, false if not.public static void instance()
Get instance. /
public void msg(string text, string ref)
Add a default message.
ZMMessages::T_GLOBAL.public void success(string text, string ref)
Add a success message.
ZMMessages::T_GLOBAL.public void warn(string text, string ref)
Add a warning message.
ZMMessages::T_GLOBAL.
Messages to be displayed to the user.
Messages will be saved in the session if not delivered.
Code supported message levels are:
T_ERRORT_WARNT_SUCCESST_MESSAGE(this is the default if no type specified)