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