2 namespace wcf\system\moderation\queue\report;
3 use wcf\data\moderation\queue\ViewableModerationQueue;
4 use wcf\system\moderation\queue\AbstractCommentResponseModerationQueueHandler;
7 * An implementation of IModerationQueueReportHandler for comment responses.
9 * @author Alexander Ebert
10 * @copyright 2001-2017 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 CommentResponseModerationQueueReportHandler extends AbstractCommentResponseModerationQueueHandler implements IModerationQueueReportHandler {
18 public function canReport($objectID) {
19 if (!$this->isValid($objectID)) {
23 $response = $this->getResponse($objectID);
24 $comment = $this->getComment($response->commentID);
25 if (!$this->getCommentManager($comment)->isAccessible($comment->objectID)) {
35 public function getReportedContent(ViewableModerationQueue $queue) {
36 return $this->getRelatedContent($queue);
42 public function getReportedObject($objectID) {
43 return $this->getResponse($objectID);