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