e3afa4c4e72cfe057c9cc8d9da7fbdd9ffd2444e
[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 protected $stackable = true;
24
25 /**
26 * @inheritDoc
27 */
28 public function getTitle(): string
29 {
30 // TODO
31 return "";
32 }
33
34 /**
35 * @inheritDoc
36 */
37 public function getMessage()
38 {
39 // TODO
40 return "";
41 }
42
43 /**
44 * @inheritDoc
45 */
46 public function getEmailMessage($notificationType = 'instant')
47 {
48 // TODO
49 }
50
51 /**
52 * @inheritDoc
53 */
54 public function getLink(): string
55 {
56 return LinkHandler::getInstance()->getLink('ModerationReport', [
57 'id' => $this->getUserNotificationObject()->queueID,
58 ]);
59 }
60
61 /**
62 * @inheritDoc
63 */
64 public function getEventHash()
65 {
66 return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->queueID);
67 }
68 }