/** * @author Federico "Lox" Lucignano * * overrides TopListBase::_loadData */ protected function _loadData($forceReload = false) { parent::_loadData($forceReload); if (!$this->mDataLoaded || $forceReload) { if ($this->exists()) { TopListParser::parse($this); $relatedArticle = TopListParser::getAttribute(TOPLIST_ATTRIBUTE_RELATED); if (!empty($relatedArticle)) { $relatedArticle = Title::newFromText($relatedArticle); } $this->setRelatedArticle($relatedArticle); $picture = TopListParser::getAttribute(TOPLIST_ATTRIBUTE_PICTURE); if (!empty($picture)) { $picture = Title::newFromText($picture); } $this->setPicture($picture); $description = TopListParser::getAttribute(TOPLIST_ATTRIBUTE_DESCRIPTION); if (!empty($description)) { $this->setDescription($description); } } $this->mDataLoaded = true; } }