/** * @return boolean */ public function isCategoryExhibitionEnabled() { if (!isset($this->categoryExhibitionEnabled)) { $this->categoryExhibitionEnabled = false; $oTmpArticle = new Article($this->categoryTitle); if (!is_null($oTmpArticle)) { if ($this->categoryTitle->isRedirect()) { $rdTitle = $oTmpArticle->getRedirectTarget(); } else { $rdTitle = $this->categoryTitle; } if (!is_null($rdTitle) && $rdTitle->getNamespace() == NS_CATEGORY) { $sCategoryDBKey = $rdTitle->getDBkey(); $this->categoryExhibitionEnabled = CategoryDataService::getArticleCount($sCategoryDBKey) > self::EXHIBITION_LIMIT ? false : true; } } } return $this->categoryExhibitionEnabled; }