public function readData()
 {
     parent::readData();
     if (!count($_POST)) {
         $this->teaser = $this->entry->teaser;
         $this->text = $this->entry->message;
         $this->subject = $this->entry->subject;
         $this->website = $this->entry->website;
         $this->languageID = $this->entry->languageID;
         foreach ($this->entry->getCategories() as $category) {
             $this->categoryIDs[] = $category->categoryID;
         }
         // tagging
         if (MODULE_TAGGING) {
             $tags = TagEngine::getInstance()->getObjectTags('de.incendium.linklist.entry', $this->entry->entryID, array($this->entry->languageID));
             foreach ($tags as $tag) {
                 $this->tags[] = $tag->name;
             }
         }
     }
     //add breadcrump
     $leafCategories = $this->entry->getLeafCategories();
     $category = reset($leafCategories);
     LINKLISTCore::getInstance()->setLocation($category->getParentCategories(), $category, $this->entry);
 }
 /**
  * @see	\wcf\system\comment\manager\ICommentManager::isAccessible()
  */
 public function isAccessible($objectID, $validateWritePermission = false)
 {
     // check object id
     $entry = new Entry($objectID);
     if (!$entry->entryID || !$entry->canRead()) {
         return false;
     }
     return true;
 }
 /**
  * @see    \wcf\system\attachment\IAttachmentObjectType::canDelete()
  */
 public function canDelete($objectID)
 {
     if ($objectID) {
         $entry = new Entry($objectID);
         if ($entry->canEdit()) {
             return true;
         }
     }
     return false;
 }