ZenMagick 0.9.8


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

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 needs ot be localised.

Author:
DerManoMann
Version:
$Id: ZMMessage.php 2762 2009-12-18 02:51:36Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMMessage(string text, string type, string ref)

Create new message.

Method Summary
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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

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

ZMMessage

public ZMMessage(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.

Method Detail

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

getRef

public string getRef()

Get the message reference.

Returns:
The message reference.

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

getText

public string getText()

Get the message text.

Returns:
The message text.

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

getType

public string getType()

Get the message type.

Returns:
The message type.

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

setRef

public void setRef(string ref)

Set the message reference.

Parameters:
ref - The message reference.

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

setText

public void setText(string text)

Set the message text.

Parameters:
text - The message text.

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

setType

public void setType(string type)

Set the message type.

Parameters:
type - The message type.

ZenMagick 0.9.8