Add IUserNotificationEvent::getUserNoticationObject()
authorMatthias Schmidt <gravatronics@live.com>
Thu, 26 May 2016 11:56:33 +0000 (13:56 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 26 May 2016 11:56:33 +0000 (13:56 +0200)
wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php
wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php

index e8a974035ca596815470b57141cb8998e1b59515..acbd4d1850c89a38b5bc440212c862cf21dd31f8 100644 (file)
@@ -233,4 +233,11 @@ abstract class AbstractUserNotificationEvent extends DatabaseObjectDecorator imp
        public function getNotification() {
                return $this->notification;
        }
+       
+       /**
+        * @inheritDoc
+        */
+       public function getUserNoticationObject() {
+               return $this->userNotificationObject;
+       }
 }
index 4288d7328e88f341c57e4aa70cf2324fda76a020..54ba0bffda84def9d5f0af36e3972225028677f1 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\user\notification\event;
 use wcf\data\language\Language;
+use wcf\data\user\notification\event\UserNotificationEvent;
 use wcf\data\user\notification\UserNotification;
 use wcf\data\user\UserProfile;
 use wcf\data\IDatabaseObjectProcessor;
@@ -155,4 +156,11 @@ interface IUserNotificationEvent extends IDatabaseObjectProcessor {
         * @return      \wcf\data\user\notification\UserNotification
         */
        public function getNotification();
+       
+       /**
+        * Returns the underlying user notification object.
+        * 
+        * @return      IUserNotificationObject
+        */
+       public function getUserNoticationObject();
 }