/** * Creates and returns an article comment object from a row * @param $row array * @return ArticleComment object */ function &_returnArticleCommentFromRow($row) { $articleComment = new ArticleComment(); $articleComment->setId($row['comment_id']); $articleComment->setCommentType($row['comment_type']); $articleComment->setRoleId($row['role_id']); $articleComment->setArticleId($row['article_id']); $articleComment->setAssocId($row['assoc_id']); $articleComment->setAuthorId($row['author_id']); $articleComment->setCommentTitle($row['comment_title']); $articleComment->setComments($row['comments']); $articleComment->setDatePosted($this->datetimeFromDB($row['date_posted'])); $articleComment->setDateModified($this->datetimeFromDB($row['date_modified'])); $articleComment->setViewable($row['viewable']); HookRegistry::call('ArticleCommentDAO::_returnArticleCommentFromRow', array(&$articleComment, &$row)); return $articleComment; }