/** * @since 2.1 * * @param integer $id * * @return DIWikiPage|null */ public function getDataItemById($id) { $poolCache = $this->inMemoryPoolCache->getPoolCacheFor(self::POOLCACHE_ID); if (!$poolCache->contains($id) && !$this->canMatchById($id)) { return null; } $wikiPage = HashBuilder::newDiWikiPageFromHash($poolCache->fetch($id)); $wikiPage->setId($id); return $wikiPage; }