/** * Creates and returns a monograph comment object from a row * @param $row array * @return MonographComment object */ function &_returnMonographCommentFromRow($row) { $monographComment = new MonographComment(); $monographComment->setCommentId($row['comment_id']); $monographComment->setCommentType($row['comment_type']); $monographComment->setRoleId($row['role_id']); $monographComment->setMonographId($row['monograph_id']); $monographComment->setAssocId($row['assoc_id']); $monographComment->setAuthorId($row['author_id']); $monographComment->setCommentTitle($row['comment_title']); $monographComment->setComments($row['comments']); $monographComment->setDatePosted($this->datetimeFromDB($row['date_posted'])); $monographComment->setDateModified($this->datetimeFromDB($row['date_modified'])); $monographComment->setViewable($row['viewable']); HookRegistry::call('MonographCommentDAO::_returnMonographCommentFromRow', array(&$monographComment, &$row)); return $monographComment; }