Public Member Functions | |
| & | _returnCommentFromRow ($row, $childLevels=0) |
| decrementChildCount ($commentId) | |
| deleteComment (&$comment, $isRecursing=false) | |
| deleteCommentsByPaper ($paperId) | |
| & | getComment ($commentId, $paperId, $childLevels=0) |
| & | getCommentsByParentId ($parentId, $childLevels=0) |
| & | getCommentsByUserId ($userId) |
| getInsertCommentId () | |
| & | getRootCommentsByPaperId ($paperId, $childLevels=0) |
| incrementChildCount ($commentId) | |
| insertComment (&$comment) | |
| updateComment (&$comment) | |
Definition at line 22 of file CommentDAO.inc.php.
| & CommentDAO._returnCommentFromRow | ( | $ | row, | |
| $ | childLevels = 0 | |||
| ) |
Creates and returns a paper comment object from a row
| $row | array |
Definition at line 112 of file CommentDAO.inc.php.
References getCommentsByParentId().
Referenced by getComment(), getCommentsByParentId(), getCommentsByUserId(), and getRootCommentsByPaperId().
| CommentDAO.decrementChildCount | ( | $ | commentId | ) |
Decrease the current count of child comments for the specified comment.
| commentId | int |
Definition at line 192 of file CommentDAO.inc.php.
Referenced by deleteComment().
| CommentDAO.deleteComment | ( | &$ | comment, | |
| $ | isRecursing = false | |||
| ) |
removes a paper comment from paper_comments table
| Comment | object |
Definition at line 200 of file CommentDAO.inc.php.
References decrementChildCount().
| CommentDAO.deleteCommentsByPaper | ( | $ | paperId | ) |
removes paper comments by paper ID
| Comment | object |
Definition at line 212 of file CommentDAO.inc.php.
| & CommentDAO.getComment | ( | $ | commentId, | |
| $ | paperId, | |||
| $ | childLevels = 0 | |||
| ) |
Retrieve Comment by comment id
| $commentId | int |
Definition at line 91 of file CommentDAO.inc.php.
References _returnCommentFromRow().
| & CommentDAO.getCommentsByParentId | ( | $ | parentId, | |
| $ | childLevels = 0 | |||
| ) |
Retrieve Comments by parent comment id
| $parentId | int |
Definition at line 49 of file CommentDAO.inc.php.
References _returnCommentFromRow().
Referenced by _returnCommentFromRow().
| & CommentDAO.getCommentsByUserId | ( | $ | userId | ) |
Retrieve comments by user id
| $userId | int |
Definition at line 70 of file CommentDAO.inc.php.
References _returnCommentFromRow().
| CommentDAO.getInsertCommentId | ( | ) |
Get the ID of the last inserted paper comment.
Definition at line 176 of file CommentDAO.inc.php.
Referenced by insertComment().
| & CommentDAO.getRootCommentsByPaperId | ( | $ | paperId, | |
| $ | childLevels = 0 | |||
| ) |
Retrieve Comments by paper id
| $paperId | int |
Definition at line 28 of file CommentDAO.inc.php.
References _returnCommentFromRow().
| CommentDAO.incrementChildCount | ( | $ | commentId | ) |
Increase the current count of child comments for the specified comment.
| commentId | int |
Definition at line 184 of file CommentDAO.inc.php.
Referenced by insertComment().
| CommentDAO.insertComment | ( | &$ | comment | ) |
inserts a new paper comment into paper_comments table
| Comment | object |
Definition at line 142 of file CommentDAO.inc.php.
References getInsertCommentId(), and incrementChildCount().
| CommentDAO.updateComment | ( | &$ | comment | ) |
1.4.7