2 namespace wcf\system\user\notification\event;
3 use wcf\data\user\notification\type;
6 * This interface should be implemented by every event which is fired by the notification system.
8 * @author Marcel Werk, Oliver Kliebisch
9 * @copyright 2001-2011 WoltLab GmbH, Oliver Kliebisch
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package com.woltlab.wcf.notification
12 * @subpackage system.user.notification.event
13 * @category Community Framework
15 interface UserNotificationEvent {
17 * Returns the message for this notification event.
19 * @param wcf\data\user\notification\type\UserNotificationType $notificationType
22 public function getMessage(UserNotificationType $notificationType);
25 * Returns the short output for this notification event.
29 public function getShortOutput();
32 * Returns the medium output for this notification event.
36 public function getMediumOutput();
39 * Returns the full output for this notification event.
43 public function getOutput();
46 * Returns the human-readable title of this event.
50 public function getTitle();
53 * Returns the human-readable description of this event.
57 public function getDescription();
60 * Returns true if this event supports the given notification type.
62 * @param wcf\data\user\notification\type\UserNotificationType $notificationType
65 public function supportsNotificationType(UserNotificationType $notificationType);