ZenMagick 0.9.10


org.zenmagick.mvc.services.misc\ZMMessage
mvc\services\misc\ZMMessage.php at line 35

Class ZMMessage

ZMObject
└─ZMMessage

public class ZMMessage
extends ZMObject

A single message.

References can be anything, but usually would be a field number if it is a validation message. Everything else typically would be null.

Note: The message text is expected to be already localised.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(string text, string type, string ref)

Create new message.

string

getRef()

Get the message reference.

string

getText()

Get the message text.

string

getType()

Get the message type.

void

setRef(string ref)

Set the message reference.

void

setText(string text)

Set the message text.

void

setType(string type)

Set the message type.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\services\misc\ZMMessage.php at line 48

__construct

public void __construct(string text, string type, string ref)

Create new message.

Parameters:
text - The message text.
type - The message type; default is msg.
ref - The referencing resource; default is ZMMessages::REF_GLOBAL.

mvc\services\misc\ZMMessage.php at line 82

getRef

public string getRef()

Get the message reference.

Returns:
The message reference.

mvc\services\misc\ZMMessage.php at line 68

getText

public string getText()

Get the message text.

Returns:
The message text.

mvc\services\misc\ZMMessage.php at line 75

getType

public string getType()

Get the message type.

Returns:
The message type.

mvc\services\misc\ZMMessage.php at line 103

setRef

public void setRef(string ref)

Set the message reference.

Parameters:
ref - The message reference.

mvc\services\misc\ZMMessage.php at line 89

setText

public void setText(string text)

Set the message text.

Parameters:
text - The message text.

mvc\services\misc\ZMMessage.php at line 96

setType

public void setType(string type)

Set the message type.

Parameters:
type - The message type.

ZenMagick 0.9.10