Public Member Functions | |
| & | _returnPaperCommentFromRow ($row) |
| deletePaperComment ($paperComment) | |
| deletePaperCommentById ($commentId) | |
| deletePaperComments ($paperId) | |
| getInsertPaperCommentId () | |
| getMostRecentPaperComment ($paperId, $commentType=null, $assocId=null) | |
| & | getPaperCommentById ($commentId) |
| & | getPaperComments ($paperId, $commentType=null, $assocId=null) |
| & | getPaperCommentsByUserId ($userId) |
| insertPaperComment (&$paperComment) | |
| updatePaperComment ($paperComment) | |
Definition at line 20 of file PaperCommentDAO.inc.php.
| & PaperCommentDAO._returnPaperCommentFromRow | ( | $ | row | ) |
Creates and returns a paper comment object from a row
| $row | array |
Definition at line 144 of file PaperCommentDAO.inc.php.
Referenced by getMostRecentPaperComment(), getPaperCommentById(), getPaperComments(), and getPaperCommentsByUserId().
| PaperCommentDAO.deletePaperComment | ( | $ | paperComment | ) |
removes a paper comment from paper_comments table
| PaperComment | object |
Definition at line 203 of file PaperCommentDAO.inc.php.
References deletePaperCommentById().
| PaperCommentDAO.deletePaperCommentById | ( | $ | commentId | ) |
removes a paper note by id
| noteId | int |
Definition at line 211 of file PaperCommentDAO.inc.php.
Referenced by deletePaperComment().
| PaperCommentDAO.deletePaperComments | ( | $ | paperId | ) |
Delete all comments for a paper.
| $paperId | int |
Definition at line 221 of file PaperCommentDAO.inc.php.
| PaperCommentDAO.getInsertPaperCommentId | ( | ) |
Get the ID of the last inserted paper comment.
Definition at line 195 of file PaperCommentDAO.inc.php.
Referenced by insertPaperComment().
| PaperCommentDAO.getMostRecentPaperComment | ( | $ | paperId, | |
| $ | commentType = null, |
|||
| $ | assocId = null | |||
| ) |
Retrieve most recent PaperComment
| $paperId | int | |
| $commentType | int |
Definition at line 87 of file PaperCommentDAO.inc.php.
References _returnPaperCommentFromRow().
| & PaperCommentDAO.getPaperCommentById | ( | $ | commentId | ) |
Retrieve Paper Comment by comment id
| $commentId | int |
Definition at line 126 of file PaperCommentDAO.inc.php.
References _returnPaperCommentFromRow().
| & PaperCommentDAO.getPaperComments | ( | $ | paperId, | |
| $ | commentType = null, |
|||
| $ | assocId = null | |||
| ) |
Retrieve PaperComments by paper id
| $paperId | int | |
| $commentType | int |
Definition at line 27 of file PaperCommentDAO.inc.php.
References _returnPaperCommentFromRow().
| & PaperCommentDAO.getPaperCommentsByUserId | ( | $ | userId | ) |
Retrieve PaperComments by user id
| $userId | int |
Definition at line 63 of file PaperCommentDAO.inc.php.
References _returnPaperCommentFromRow().
| PaperCommentDAO.insertPaperComment | ( | &$ | paperComment | ) |
inserts a new paper comment into paper_comments table
| PaperNote | object |
Definition at line 168 of file PaperCommentDAO.inc.php.
References getInsertPaperCommentId().
| PaperCommentDAO.updatePaperComment | ( | $ | paperComment | ) |
updates a paper comment
| paperComment | object |
Definition at line 231 of file PaperCommentDAO.inc.php.
1.4.7