/** * Returns number of unread news. * * @return integer */ public function getUnreadEntry() { if ($this->unreadEntry === null) { $this->unreadEntry = NewsCategoryCache::getInstance()->getUnreadEntry($this->categoryID); } return $this->unreadEntry; }
public function getNews() { if ($this->news === null) { $this->news = NewsCategoryCache::getInstance()->getNews($this->categoryID); } return $this->news; }