/**
  * Creates a new CategoryEntryList object.
  * 
  * @param    array<integer>        $categoryIDs
  */
 public function __construct(array $categoryIDs)
 {
     parent::__construct();
     $this->getConditionBuilder()->add('entry_to_category.categoryID IN (?)', array($categoryIDs));
     $this->getConditionBuilder()->add('entry.entryID = entry_to_category.entryID');
     if (!WCF::getSession()->getPermission('mod.linklist.canModerateEntry')) {
         $this->getConditionBuilder()->add('entry.isDisabled = 0');
     }
     if (!WCF::getSession()->getPermission('mod.linklist.canViewDeletedEntry')) {
         $this->getConditionBuilder()->add('entry.isDeleted = 0');
     }
 }
 /**
  * Creates a new TaggedEntryList object.
  * 
  * @param	\wcf\data\tag\Tag	$tag
  */
 public function __construct(Tag $tag)
 {
     parent::__construct();
     $this->getConditionBuilder()->add('tag_to_object.objectTypeID = ? AND tag_to_object.languageID = ? AND tag_to_object.tagID = ?', array(TagEngine::getInstance()->getObjectTypeID('de.incendium.linklist.entry'), $tag->languageID, $tag->tagID));
     $this->getConditionBuilder()->add('entry.entryID = tag_to_object.objectID');
 }