public function readObjects()
 {
     if ($this->objectIDs === null) {
         $this->readObjectIDs();
     }
     parent::readObjects();
 }
 public function __construct(array $categoryIDs)
 {
     parent::__construct();
     if (!empty($categoryIDs)) {
         $this->getConditionBuilder()->add('news_to_category.categoryID IN (?)', array($categoryIDs));
         $this->getConditionBuilder()->add('news.newsID = news_to_category.newsID');
     } else {
         $this->getConditionBuilder()->add('1=0');
     }
     foreach ($categoryIDs as $categoryID) {
         $category = new NewsCategory(CategoryHandler::getInstance()->getCategory($categoryID));
         if (!$category->getPermission('canViewDelayedNews')) {
             $this->getConditionBuilder()->add('news.isDisabled = ?', array(0));
         }
     }
 }