articleFileDao =& DAORegistry::getDAO('ArticleFileDAO'); parent::PKPNoteDAO(); } /** * Construct a new data object corresponding to this DAO. * @return Note */ function newDataObject() { return new Note(); } function &_returnNoteFromRow($row) { $note =& parent::_returnNoteFromRow($row); if ($fileId = $note->getFileId()) { $file =& $this->articleFileDao->getArticleFile($fileId); $note->setFile($file); } return $note; } } ?>