コード例 #1
0
 /**
  * @see	\wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     if (empty($_POST)) {
         $this->assignedUserID = $this->queue->assignedUserID;
     }
     WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.moderation.moderation'), LinkHandler::getInstance()->getLink('ModerationList')));
     $this->commentObjectTypeID = CommentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.moderation.queue');
     $this->commentManager = CommentHandler::getInstance()->getObjectType($this->commentObjectTypeID)->getProcessor();
     $this->commentList = CommentHandler::getInstance()->getCommentList($this->commentManager, $this->commentObjectTypeID, $this->queueID);
     // update queue visit
     if ($this->queue->isNew()) {
         $action = new ModerationQueueAction(array($this->queue->getDecoratedObject()), 'markAsRead', array('visitTime' => TIME_NOW));
         $action->executeAction();
     }
 }
コード例 #2
0
 /**
  * @see	\wcf\system\moderation\queue\report\IModerationQueueReportHandler::getReportedContent()
  */
 public function getReportedContent(ViewableModerationQueue $queue)
 {
     WCF::getTPL()->assign(array('user' => new UserProfile($queue->getAffectedObject())));
     return WCF::getTPL()->fetch('moderationUser');
 }
 /**
  * @see	\wcf\system\moderation\queue\activation\IModerationQueueActivationHandler::getDisabledContent()
  */
 public function getDisabledContent(ViewableModerationQueue $queue)
 {
     // init template
     WCF::getTPL()->assign(array('file' => $queue->getAffectedObject()));
     return WCF::getTPL()->fetch('moderationFile', 'filebase');
 }
 /**
  * @see	\wcf\system\moderation\queue\activation\IModerationQueueActivationHandler::getDisabledContent()
  */
 public function getDisabledContent(ViewableModerationQueue $queue)
 {
     // init template
     WCF::getTPL()->assign(array('entry' => new ViewableEntry($queue->getAffectedObject())));
     return WCF::getTPL()->fetch('moderationEntry', 'linklist');
 }
 /**
  * @see	\wcf\system\moderation\queue\report\IModerationQueueReportHandler::getReportedContent()
  */
 public function getReportedContent(ViewableModerationQueue $queue)
 {
     WCF::getTPL()->assign(array('news' => new ViewableNews($queue->getAffectedObject())));
     // init template
     return WCF::getTPL()->fetch('newsModerationEntry', 'news');
 }
 /**
  * @see	\wcf\system\moderation\queue\report\IModerationQueueReportHandler::getReportedContent()
  */
 public function getReportedContent(ViewableModerationQueue $queue)
 {
     WCF::getTPL()->assign(array('message' => ViewableConversationMessage::getViewableConversationMessage($queue->getAffectedObject()->messageID)));
     return WCF::getTPL()->fetch('moderationConversationMessage');
 }
 /**
  * @see	\wcf\system\moderation\queue\report\IModerationQueueReportHandler::getReportedContent()
  */
 public function getReportedContent(ViewableModerationQueue $queue)
 {
     WCF::getTPL()->assign(array('entry' => new ViewableEntry($queue->getAffectedObject())));
     return WCF::getTPL()->fetch('filebaseModerationEntry', 'filebase');
 }
コード例 #8
0
 /**
  * @see	\wcf\system\comment\manager\ICommentManager::getLink()
  */
 public function getLink($objectTypeID, $objectID)
 {
     $entry = new ViewableModerationQueue(new ModerationQueue($objectID));
     return $entry->getLink();
 }