/** * Lazy initialization of article text from DB */ protected function initText() { if (!isset($this->mText)) { if ($this->mRevision != null) { $this->mText = $this->searchEngine->getTextFromContent($this->mTitle, $this->mRevision->getContent()); } else { // TODO: can we fetch raw wikitext for commons images? $this->mText = ''; } } }