/** * Returns a list of all related news updates. * * @return \news\data\news\update\ViewableNewsUpdateList */ public function getNewsUpdateList() { if ($this->newsUpdateList === null) { $this->newsUpdateList = new ViewableNewsUpdateList(); $this->newsUpdateList->getConditionBuilder()->add('news_update.newsID = ?', array($this->newsID)); $this->newsUpdateList->readObjects(); } return $this->newsUpdateList; }
/** * Returns a list of all related news updates. * * @return \news\data\news\update\ViewableNewsUpdateList */ public function getEntryUpdateList() { if ($this->entryUpdateList === null) { $this->entryUpdateList = new ViewableEntryUpdateList(); $this->entryUpdateList->getConditionBuilder()->add('news_entry_update.entryID = ?', array($this->entryID)); $this->entryUpdateList->readObjects(); } return $this->entryUpdateList; }