From b669a8a51ca5295512d691e9dfaf77e218b0fce9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 3 Sep 2015 22:31:48 +0200 Subject: [PATCH] add fireEvent-Event --- .../notification/UserNotificationHandler.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index f7fc6f291e..da8d676891 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -10,6 +10,7 @@ use wcf\data\user\UserEditor; use wcf\data\user\UserProfile; use wcf\system\cache\builder\UserNotificationEventCacheBuilder; use wcf\system\database\util\PreparedStatementConditionBuilder; +use wcf\system\event\EventHandler; use wcf\system\exception\SystemException; use wcf\system\mail\Mail; use wcf\system\user\notification\event\IUserNotificationEvent; @@ -105,6 +106,18 @@ class UserNotificationHandler extends SingletonFactory { // set object data $event->setObject(new UserNotification(null, array()), $notificationObject, $userProfile, $additionalData); + EventHandler::getInstance()->fireAction($this, 'fireEvent', array( + 'eventName' => $eventName, + 'objectType' => $objectType, + 'notificationObject' => $notificationObject, + 'recipientIDs' => $recipientIDs, + 'additionalData' => $additionalData, + 'baseObjectID' => $baseObjectID, + 'objectTypeObject' => $objectTypeObject, + 'userProfile' => $userProfile, + 'event' => $event + )); + // find existing notifications $conditions = new PreparedStatementConditionBuilder(); $conditions->add("userID IN (?)", array($recipientIDs)); -- 2.20.1