[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Notification/ -> Event.php (source)

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


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7