1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<?php
/**
* The Notification_Event:: class provides a container for passing
* messages to Notification_Listener classes.
*
* $Horde: framework/Notification/Notification/Event.php,v 1.5.2.5 2006/01/01 21:28:29 jan Exp $
*
* Copyright 2002-2006 Hans Lellelid <hans@velum.net>
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Hans Lellelid <hans@velum.net>
* @since Horde 3.0
* @package Horde_Notification
*/
class Notification_Event {
/**
* The message being passed.
* @var string
* @access private
*/
var $_message = '';
/**
* If passed, sets the message for this event.
*
* @param string $message The text message for this event.
*/
function Notification_Event($message = null)
{
if (!is_null($message)) {
$this->setMessage($message);
}
}
/**
* Sets the text message for this event.
*
* @param string $message The text message to display.
*/
function setMessage($message)
{
$this->_message = $message;
}
/**
* Gets the text message for this event.
*
* @return string The text message to display.
*/
function getMessage()
{
return $this->_message;
}
}
|