/** * Returns the file with the given id. * * @param integer $fileID * @return \array<\filebase\data\file\File> */ public function getEntry($entryID) { if (!empty($this->entryIDs)) { $this->entryIDs = array_diff($this->entryIDs, array_keys($this->entrys)); if (!empty($this->entryIDs)) { $entryList = new NewsList(); $entryList->enableCategoryLoading(false); $entryList->setObjectIDs($this->entryIDs); $entryList->readObjects(); $this->entrys += $entryList->getObjects(); $this->entryIDs = array(); } } if (isset($this->entrys[$entryID])) { return $this->entrys[$entryID]; } return null; }