/**
  * @see	\wcf\system\moderation\queue\IModerationQueueHandler::removeContent()
  */
 public function removeContent(ModerationQueue $queue, $message)
 {
     if ($this->isValid($queue->objectID)) {
         $responseAction = new CommentResponseAction(array($this->getResponse($queue->objectID)), 'delete');
         $responseAction->executeAction();
     }
 }
Example #2
0
 /**
  * Removes a comment or response.
  * 
  * @return	array
  */
 public function remove()
 {
     if ($this->comment !== null) {
         $objectAction = new CommentAction(array($this->comment), 'delete');
         $objectAction->executeAction();
         return array('commentID' => $this->comment->commentID);
     } else {
         $objectAction = new CommentResponseAction(array($this->response), 'delete');
         $objectAction->executeAction();
         return array('responseID' => $this->response->responseID);
     }
 }