2 declare(strict_types=1);
3 namespace wcf\system\moderation\queue\report;
4 use wcf\data\moderation\queue\ViewableModerationQueue;
5 use wcf\system\moderation\queue\AbstractCommentCommentModerationQueueHandler;
8 * An implementation of IModerationQueueReportHandler for comments.
10 * @author Alexander Ebert
11 * @copyright 2001-2018 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Moderation\Queue
15 class CommentCommentModerationQueueReportHandler extends AbstractCommentCommentModerationQueueHandler implements IModerationQueueReportHandler {
19 protected $definitionName = 'com.woltlab.wcf.moderation.report';
24 public function canReport($objectID) {
25 if (!$this->isValid($objectID)) {
29 $comment = $this->getComment($objectID);
30 if (!$this->getCommentManager($comment)->isAccessible($comment->objectID)) {
40 public function getReportedContent(ViewableModerationQueue $queue) {
41 return $this->getRelatedContent($queue);
47 public function getReportedObject($objectID) {
48 return $this->getComment($objectID);