3 namespace wcf\system\user\notification\event;
5 use wcf\system\request\LinkHandler;
6 use wcf\system\user\notification\object\ModerationQueueUserNotificationObject;
9 * Notification event for new reports in the moderation queue.
12 * @copyright 2001-2024 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
16 * @method ModerationQueueUserNotificationObject getUserNotificationObject()
18 final class ReportModerationQueueUserNotificationEvent extends AbstractUserNotificationEvent
21 public function getTitle(): string
23 return $this->getLanguage()->get('wcf.moderation.report.notification.title');
27 public function getMessage()
29 return $this->getLanguage()->getDynamicVariable(
30 'wcf.moderation.report.notification.message',
32 'author' => $this->author,
33 'notification' => $this->notification,
34 'userNotificationObject' => $this->getUserNotificationObject(),
40 public function getEmailMessage($notificationType = 'instant')
46 public function getLink(): string
48 return LinkHandler::getInstance()->getLink('ModerationReport', [
49 'id' => $this->getUserNotificationObject()->queueID,
54 public function getEventHash()
56 return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->queueID);