8fc2fac93a648b2c8dbd845a6b3685c9032fd84a
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 namespace wcf\system\user\notification\event;
4
5 use wcf\system\request\LinkHandler;
6 use wcf\system\user\notification\object\ModerationQueueUserNotificationObject;
7
8 /**
9 * Notification event for new reports in the moderation queue.
10 *
11 * @author Olaf Braun
12 * @copyright 2001-2024 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @since 6.1
15 *
16 * @method ModerationQueueUserNotificationObject getUserNotificationObject()
17 */
18 final class ReportModerationQueueUserNotificationEvent extends AbstractUserNotificationEvent
19 {
20 /**
21 * @inheritDoc
22 */
23 public function getTitle(): string
24 {
25 // TODO
26 return "";
27 }
28
29 /**
30 * @inheritDoc
31 */
32 public function getMessage()
33 {
34 // TODO
35 return "";
36 }
37
38 /**
39 * @inheritDoc
40 */
41 public function getEmailMessage($notificationType = 'instant')
42 {
43 // TODO
44 }
45
46 /**
47 * @inheritDoc
48 */
49 public function getLink(): string
50 {
51 return LinkHandler::getInstance()->getLink('ModerationReport', [
52 'id' => $this->getUserNotificationObject()->queueID,
53 ]);
54 }
55
56 /**
57 * @inheritDoc
58 */
59 public function getEventHash()
60 {
61 return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->queueID);
62 }
63 }