/** * Creates and returns a paper comment object from a row * @param $row array * @return PaperComment object */ function &_returnPaperCommentFromRow($row) { $paperComment = new PaperComment(); $paperComment->setId($row['comment_id']); $paperComment->setCommentType($row['comment_type']); $paperComment->setRoleId($row['role_id']); $paperComment->setPaperId($row['paper_id']); $paperComment->setAssocId($row['assoc_id']); $paperComment->setAuthorId($row['author_id']); $paperComment->setCommentTitle($row['comment_title']); $paperComment->setComments($row['comments']); $paperComment->setDatePosted($this->datetimeFromDB($row['date_posted'])); $paperComment->setDateModified($this->datetimeFromDB($row['date_modified'])); $paperComment->setViewable($row['viewable']); HookRegistry::call('PaperCommentDAO::_returnPaperCommentFromRow', array(&$paperComment, &$row)); return $paperComment; }