3 namespace wcf\system\moderation\queue\report
;
5 use wcf\data\moderation\queue\ViewableModerationQueue
;
6 use wcf\system\moderation\queue\AbstractCommentResponseModerationQueueHandler
;
9 * An implementation of IModerationQueueReportHandler for comment responses.
11 * @author Alexander Ebert
12 * @copyright 2001-2019 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package WoltLabSuite\Core\System\Moderation\Queue
16 class CommentResponseModerationQueueReportHandler
extends AbstractCommentResponseModerationQueueHandler
implements
17 IModerationQueueReportHandler
22 public function canReport($objectID)
24 if (!$this->isValid($objectID)) {
28 $response = $this->getResponse($objectID);
29 $comment = $this->getComment($response->commentID
);
30 if (!$this->getCommentManager($comment)->isAccessible($comment->objectID
)) {
40 public function getReportedContent(ViewableModerationQueue
$queue)
42 return $this->getRelatedContent($queue);
48 public function getReportedObject($objectID)
50 return $this->getResponse($objectID);