/**
  * @see	\wcf\system\comment\manager\ICommentManager::updateCounter()
  */
 public function updateCounter($objectID, $value)
 {
     $entry = new ModerationQueue($objectID);
     $editor = new ModerationQueueEditor($entry);
     $editor->updateCounters(array('comments' => $value));
     $editor->update(array('lastChangeTime' => TIME_NOW));
 }
 /**
  * Returns the data for the newly assigned user.
  * 
  * @return	array<string>
  */
 public function assignUser()
 {
     $data = array('assignedUserID' => $this->parameters['assignedUserID'] ?: null);
     if ($this->user->userID) {
         if ($this->moderationQueueEditor->status == ModerationQueue::STATUS_OUTSTANDING) {
             $data['status'] = ModerationQueue::STATUS_PROCESSING;
         }
     } else {
         if ($this->moderationQueueEditor->status == ModerationQueue::STATUS_PROCESSING) {
             $data['status'] = ModerationQueue::STATUS_OUTSTANDING;
         }
     }
     $this->moderationQueueEditor->update($data);
     $username = $this->user->userID ? $this->user->username : WCF::getLanguage()->get('wcf.moderation.assignedUser.nobody');
     $link = '';
     if ($this->user->userID) {
         $link = LinkHandler::getInstance()->getLink('User', array('object' => $this->user));
     }
     $newStatus = '';
     if (isset($data['status'])) {
         $newStatus = $data['status'] == ModerationQueue::STATUS_OUTSTANDING ? 'outstanding' : 'processing';
     }
     return array('link' => $link, 'newStatus' => $newStatus, 'userID' => $this->user->userID, 'username' => $username);
 }
 /**
  * Removes this report by marking it as done without further processing.
  */
 public function removeReport()
 {
     $this->queue->markAsRejected();
 }
 /**
  * Deletes reported content.
  */
 public function removeContent()
 {
     // mark content as deleted
     ModerationQueueActivationManager::getInstance()->removeContent($this->queue->getDecoratedObject(), $this->parameters['message']);
     $this->queue->markAsRejected();
 }