PaperCommentDAO Class Reference
[Paper]

Operations for retrieving and modifying PaperComment objects. More...

List of all members.

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)


Detailed Description

Operations for retrieving and modifying PaperComment objects.

See also:
PaperComment

Definition at line 20 of file PaperCommentDAO.inc.php.


Member Function Documentation

& PaperCommentDAO._returnPaperCommentFromRow ( row  ) 

Creates and returns a paper comment object from a row

Parameters:
$row array
Returns:
PaperComment object

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

Parameters:
PaperComment object

Definition at line 203 of file PaperCommentDAO.inc.php.

References deletePaperCommentById().

PaperCommentDAO.deletePaperCommentById ( commentId  ) 

removes a paper note by id

Parameters:
noteId int

Definition at line 211 of file PaperCommentDAO.inc.php.

Referenced by deletePaperComment().

PaperCommentDAO.deletePaperComments ( paperId  ) 

Delete all comments for a paper.

Parameters:
$paperId int

Definition at line 221 of file PaperCommentDAO.inc.php.

PaperCommentDAO.getInsertPaperCommentId (  ) 

Get the ID of the last inserted paper comment.

Returns:
int

Definition at line 195 of file PaperCommentDAO.inc.php.

Referenced by insertPaperComment().

PaperCommentDAO.getMostRecentPaperComment ( paperId,
commentType = null,
assocId = null 
)

Retrieve most recent PaperComment

Parameters:
$paperId int
$commentType int
Returns:
PaperComment

Definition at line 87 of file PaperCommentDAO.inc.php.

References _returnPaperCommentFromRow().

& PaperCommentDAO.getPaperCommentById ( commentId  ) 

Retrieve Paper Comment by comment id

Parameters:
$commentId int
Returns:
PaperComment object

Definition at line 126 of file PaperCommentDAO.inc.php.

References _returnPaperCommentFromRow().

& PaperCommentDAO.getPaperComments ( paperId,
commentType = null,
assocId = null 
)

Retrieve PaperComments by paper id

Parameters:
$paperId int
$commentType int
Returns:
PaperComment objects array

Definition at line 27 of file PaperCommentDAO.inc.php.

References _returnPaperCommentFromRow().

& PaperCommentDAO.getPaperCommentsByUserId ( userId  ) 

Retrieve PaperComments by user id

Parameters:
$userId int
Returns:
PaperComment objects array

Definition at line 63 of file PaperCommentDAO.inc.php.

References _returnPaperCommentFromRow().

PaperCommentDAO.insertPaperComment ( &$  paperComment  ) 

inserts a new paper comment into paper_comments table

Parameters:
PaperNote object
Returns:
Paper Note Id int

Definition at line 168 of file PaperCommentDAO.inc.php.

References getInsertPaperCommentId().

PaperCommentDAO.updatePaperComment ( paperComment  ) 

updates a paper comment

Parameters:
paperComment object

Definition at line 231 of file PaperCommentDAO.inc.php.


The documentation for this class was generated from the following file:
Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7