Public Member Functions

MonographCommentDAO Class Reference
[Monograph]

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

List of all members.

Public Member Functions

_returnMonographCommentFromRow ($row)
 deleteById ($commentId)
 deleteByMonographId ($monographId)
 deleteObject ($monographComment)
getById ($commentId)
getByUserId ($userId)
 getInsertMonographCommentId ()
getMonographComments ($monographId, $commentType=null, $assocId=null)
 getMostRecentMonographComment ($monographId, $commentType=null, $assocId=null)
getReviewerCommentsByReviewerId ($reviewerId, $monographId, $reviewId=null)
 insertMonographComment (&$monographComment)
 MonographCommentDAO ()
 updateObject ($monographComment)

Detailed Description

Operations for retrieving and modifying MonographComment objects.

See also:
MonographComment

Definition at line 18 of file MonographCommentDAO.inc.php.


Member Function Documentation

& MonographCommentDAO._returnMonographCommentFromRow ( row  ) 

Creates and returns a monograph comment object from a row

Parameters:
$row array
Returns:
MonographComment object

Definition at line 153 of file MonographCommentDAO.inc.php.

Referenced by getById(), and getMostRecentMonographComment().

MonographCommentDAO.deleteById ( commentId  ) 

removes a monograph note by id

Parameters:
noteId int

Definition at line 220 of file MonographCommentDAO.inc.php.

Referenced by deleteObject().

MonographCommentDAO.deleteByMonographId ( monographId  ) 

Delete all comments for a monograph.

Parameters:
$monographId int

Definition at line 230 of file MonographCommentDAO.inc.php.

MonographCommentDAO.deleteObject ( monographComment  ) 

removes a monograph comment from monograph_comments table

Parameters:
MonographComment object

Definition at line 212 of file MonographCommentDAO.inc.php.

References deleteById().

& MonographCommentDAO.getById ( commentId  ) 

Retrieve Monograph Comment by comment id

Parameters:
$commentId int
Returns:
MonographComment object

Definition at line 135 of file MonographCommentDAO.inc.php.

References _returnMonographCommentFromRow().

& MonographCommentDAO.getByUserId ( userId  ) 

Retrieve MonographComments by user id

Parameters:
$userId int
Returns:
DAOResultFactory

Definition at line 60 of file MonographCommentDAO.inc.php.

MonographCommentDAO.getInsertMonographCommentId (  ) 

Get the ID of the last inserted monograph comment.

Returns:
int

Definition at line 204 of file MonographCommentDAO.inc.php.

Referenced by insertMonographComment().

& MonographCommentDAO.getMonographComments ( monographId,
commentType = null,
assocId = null 
)

Retrieve MonographComments by monograph id

Parameters:
$monographId int
$commentType int
Returns:
DAOResultFactory

Definition at line 32 of file MonographCommentDAO.inc.php.

MonographCommentDAO.getMostRecentMonographComment ( monographId,
commentType = null,
assocId = null 
)

Retrieve most recent MonographComment

Parameters:
$monographId int
$commentType int
Returns:
MonographComment

Definition at line 96 of file MonographCommentDAO.inc.php.

References _returnMonographCommentFromRow().

& MonographCommentDAO.getReviewerCommentsByReviewerId ( reviewerId,
monographId,
reviewId = null 
)

Retrieve MonographComments made my reviewers on a monograph

Parameters:
$reviewerId int The user id of the reviewer.
$monographId int The monograph Id that was reviewered/commented on.
$reviewId int (optional) The review assignment Id the comment pertains to.
Returns:
DAOResultFactory

Definition at line 76 of file MonographCommentDAO.inc.php.

MonographCommentDAO.insertMonographComment ( &$  monographComment  ) 

inserts a new monograph comment into monograph_comments table

Parameters:
MonographNote object
Returns:
Monograph Note Id int

Definition at line 177 of file MonographCommentDAO.inc.php.

References getInsertMonographCommentId().

MonographCommentDAO.MonographCommentDAO (  ) 

Constructor

Definition at line 22 of file MonographCommentDAO.inc.php.

MonographCommentDAO.updateObject ( monographComment  ) 

updates a monograph comment

Parameters:
MonographComment object

Definition at line 240 of file MonographCommentDAO.inc.php.


The documentation for this class was generated from the following file: