/**
  * @see	\wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     // add breadcrumbs
     $leafCategories = $this->entry->getLeafCategories();
     $category = reset($leafCategories);
     FILEBASECore::getInstance()->setLocation($category->getParentCategories(), $category, $this->entry->getDecoratedObject());
 }
 /**
  * Validates the get entry preview action.
  */
 public function validateGetEntryPreview()
 {
     $this->viewableEntry = ViewableEntry::getEntry(reset($this->objectIDs));
     if ($this->viewableEntry === null || !$this->viewableEntry->canRead()) {
         throw new PermissionDeniedException();
     }
 }
 /**
  * @inheritDoc
  */
 public function getOutstandingItemCount($objectID = null)
 {
     return ViewableEntry::getUnreadEntries();
 }
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('entry' => $this->entry, 'entryID' => $this->entryID, 'hasMarkedItems' => ClipboardHandler::getInstance()->hasMarkedItems(ClipboardHandler::getInstance()->getObjectTypeID('de.incenduium.filebase.file')), 'userProfile' => $this->userProfile, 'commentCanAdd' => WCF::getUser()->userID && WCF::getSession()->getPermission('user.filebase.canAddComment'), 'commentList' => $this->commentList, 'commentObjectTypeID' => $this->commentObjectTypeID, 'fileList' => $this->fileList, 'lastCommentTime' => $this->commentList ? $this->commentList->getMinCommentTime() : 0, 'likeData' => MODULE_LIKE && $this->commentList ? $this->commentList->getLikeData() : array(), 'userEntryList' => $this->userEntryList, 'tags' => $this->tags, 'entryLikeData' => $this->entryLikeData, 'attachmentList' => $this->entry->getAttachments(), 'allowSpidersToIndexThisPage' => true));
 }