ReviewAssignmentDAO Class Reference
[Submission]

Class for DAO relating reviewers to papers. More...

List of all members.

Public Member Functions

_returnReviewAssignmentFromRow (&$row)
 deleteReviewAssignmentById ($reviewId)
 deleteReviewAssignmentsByPaper ($paperId)
getAuthorViewableFilesByStage ($paperId)
 getAverageQualityRatings ($schedConfId)
getCancelsAndRegrets ($paperId)
 getCompletedReviewCounts ($schedConfId)
getEarliestNotificationByStage ($paperId)
getIncompleteReviewAssignments ()
 getInsertReviewId ()
getLastModifiedByStage ($paperId)
getReviewAssignment ($paperId, $reviewerId, $stage)
getReviewAssignmentById ($reviewId)
getReviewAssignmentsByPaperId ($paperId, $stage=null)
getReviewAssignmentsByReviewFormId ($reviewFormId)
getReviewAssignmentsByUserId ($userId)
getReviewFilesByStage ($paperId)
getReviewIndexesForStage ($paperId, $stage)
 insertReviewAssignment (&$reviewAssignment)
 ReviewAssignmentDAO ()
 updateReviewAssignment (&$reviewAssignment)

Public Attributes

 $paperCommentsDao
 $paperFileDao
 $suppFileDao
 $userDao


Detailed Description

Class for DAO relating reviewers to papers.

See also:
ReviewAssignment

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


Member Function Documentation

& ReviewAssignmentDAO._returnReviewAssignmentFromRow ( &$  row  ) 

Internal function to return a review assignment object from a row.

Parameters:
$row array
Returns:
ReviewAssignment

Definition at line 386 of file ReviewAssignmentDAO.inc.php.

Referenced by getCancelsAndRegrets(), getIncompleteReviewAssignments(), getReviewAssignment(), getReviewAssignmentById(), getReviewAssignmentsByPaperId(), getReviewAssignmentsByReviewFormId(), and getReviewAssignmentsByUserId().

ReviewAssignmentDAO.deleteReviewAssignmentById ( reviewId  ) 

Delete review assignment.

Parameters:
$reviewId int

Definition at line 508 of file ReviewAssignmentDAO.inc.php.

ReviewAssignmentDAO.deleteReviewAssignmentsByPaper ( paperId  ) 

Delete review assignments by paper.

Parameters:
$paperId int
Returns:
boolean

Definition at line 523 of file ReviewAssignmentDAO.inc.php.

& ReviewAssignmentDAO.getAuthorViewableFilesByStage ( paperId  ) 

Get all author-viewable reviewer files for a paper for each stage.

Parameters:
$paperId int
Returns:
array returned[stage][reviewer_index] = array of PaperFiles

Definition at line 268 of file ReviewAssignmentDAO.inc.php.

ReviewAssignmentDAO.getAverageQualityRatings ( schedConfId  ) 

Get the average quality ratings and number of ratings for all users of a scheduled conference.

Returns:
array

Definition at line 556 of file ReviewAssignmentDAO.inc.php.

& ReviewAssignmentDAO.getCancelsAndRegrets ( paperId  ) 

Get all cancelled/declined review assignments for a paper.

Parameters:
$paperId int
Returns:
array ReviewAssignments

Definition at line 362 of file ReviewAssignmentDAO.inc.php.

References _returnReviewAssignmentFromRow().

ReviewAssignmentDAO.getCompletedReviewCounts ( schedConfId  ) 

Get the average quality ratings and number of ratings for all users of a scheduled conference.

Returns:
array

Definition at line 579 of file ReviewAssignmentDAO.inc.php.

& ReviewAssignmentDAO.getEarliestNotificationByStage ( paperId  ) 

Get the first notified date from all review assignments for a stage of a submission.

Parameters:
$paperId int
$stage int
Returns:
array Associative array of ($stage_num => $earliest_date_of_notification)*

Definition at line 337 of file ReviewAssignmentDAO.inc.php.

& ReviewAssignmentDAO.getIncompleteReviewAssignments (  ) 

Get all incomplete review assignments for all conferences

Parameters:
$paperId int
Returns:
array ReviewAssignments

Definition at line 115 of file ReviewAssignmentDAO.inc.php.

References _returnReviewAssignmentFromRow().

ReviewAssignmentDAO.getInsertReviewId (  ) 

Get the ID of the last inserted review assignment.

Returns:
int

Definition at line 548 of file ReviewAssignmentDAO.inc.php.

Referenced by insertReviewAssignment().

& ReviewAssignmentDAO.getLastModifiedByStage ( paperId  ) 

Get the most recent last modified date for all review assignments for each stage of a submission.

Parameters:
$paperId int
$stage int
Returns:
array associating stage with most recent last modified date

Definition at line 311 of file ReviewAssignmentDAO.inc.php.

& ReviewAssignmentDAO.getReviewAssignment ( paperId,
reviewerId,
stage 
)

Retrieve a review assignment by reviewer and paper.

Parameters:
$paperId int
$reviewerId int
$stage int
Returns:
ReviewAssignment

Definition at line 44 of file ReviewAssignmentDAO.inc.php.

References _returnReviewAssignmentFromRow().

& ReviewAssignmentDAO.getReviewAssignmentById ( reviewId  ) 

Retrieve a review assignment by review assignment id.

Parameters:
$reviewId int
Returns:
ReviewAssignment

Definition at line 66 of file ReviewAssignmentDAO.inc.php.

References _returnReviewAssignmentFromRow().

& ReviewAssignmentDAO.getReviewAssignmentsByPaperId ( paperId,
stage = null 
)

Get all review assignments for a paper.

Parameters:
$paperId int
Returns:
array ReviewAssignments

Definition at line 138 of file ReviewAssignmentDAO.inc.php.

References _returnReviewAssignmentFromRow().

& ReviewAssignmentDAO.getReviewAssignmentsByReviewFormId ( reviewFormId  ) 

Get all review assignments for a review form.

Parameters:
$reviewFormId int
Returns:
array ReviewAssignments

Definition at line 209 of file ReviewAssignmentDAO.inc.php.

References _returnReviewAssignmentFromRow().

& ReviewAssignmentDAO.getReviewAssignmentsByUserId ( userId  ) 

Get all review assignments for a reviewer.

Parameters:
$userId int
Returns:
array ReviewAssignments

Definition at line 176 of file ReviewAssignmentDAO.inc.php.

References _returnReviewAssignmentFromRow().

& ReviewAssignmentDAO.getReviewFilesByStage ( paperId  ) 

Get a review file for a paper for each stage.

Parameters:
$paperId int
Returns:
array PaperFiles

Definition at line 233 of file ReviewAssignmentDAO.inc.php.

& ReviewAssignmentDAO.getReviewIndexesForStage ( paperId,
stage 
)

Determine the order of active reviews for the given stage of the give paper

Parameters:
$paperId int
$stage int
Returns:
array associating review ID with number; ie if review ID 26 is first, returned['26']=0

Definition at line 89 of file ReviewAssignmentDAO.inc.php.

ReviewAssignmentDAO.insertReviewAssignment ( &$  reviewAssignment  ) 

Insert a new Review Assignment.

Parameters:
$reviewAssignment ReviewAssignment

Definition at line 432 of file ReviewAssignmentDAO.inc.php.

References getInsertReviewId().

ReviewAssignmentDAO.ReviewAssignmentDAO (  ) 

Constructor.

Definition at line 29 of file ReviewAssignmentDAO.inc.php.

ReviewAssignmentDAO.updateReviewAssignment ( &$  reviewAssignment  ) 

Update an existing review assignment.

Parameters:
$reviewAssignment object

Definition at line 462 of file ReviewAssignmentDAO.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