From: Joshua Rüsweg Date: Thu, 3 Sep 2015 20:31:48 +0000 (+0200) Subject: add fireEvent-Event X-Git-Tag: 2.1.7~4^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b669a8a51ca5295512d691e9dfaf77e218b0fce9;p=GitHub%2FWoltLab%2FWCF.git add fireEvent-Event --- 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));