ZenMagick 0.9.6


org.zenmagick.model.ZMMessage

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 2054 2009-03-12 03:41:22Z dermanomann $

Fields inherited from org.zenmagick.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.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

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::T_GLOBAL.

Method Detail

getRef

public string getRef()

Get the message reference.

Returns:
The message reference.

getText

public string getText()

Get the message text.

Returns:
The message text.

getType

public string getType()

Get the message type.

Returns:
The message type.

ZenMagick 0.9.6