Operations for retrieving and modifying ReviewRound objects. More...
Public Member Functions | |
| & | _fromRow (&$row) |
| build ($submissionId, $stageId, $round, $status=null) | |
| & | getByMonographFileId ($monographFileId) |
| & | getByMonographId ($monographId, $stageId=null, $round=null) |
| getCurrentRoundByMonographId ($monographId, $stageId=null) | |
| getEditorDecisionRoundStatus () | |
| getInsertReviewRoundId () | |
| & | getLastReviewRoundByMonographId ($monographId, $stageId=null) |
| getReviewRound ($submissionId, $stageId, $round) | |
| & | getReviewRoundById ($reviewRoundId) |
| insertObject (&$reviewRound) | |
| newDataObject () | |
| ReviewRoundDAO () | |
| reviewRoundExists ($monographId, $stageId, $round) | |
| updateObject (&$reviewRound) | |
| updateStatus (&$reviewRound, $reviewAssignments=array(), $status=null) | |
Operations for retrieving and modifying ReviewRound objects.
Definition at line 18 of file ReviewRoundDAO.inc.php.
| & ReviewRoundDAO._fromRow | ( | &$ | row | ) |
Internal function to return a review round object from a row.
| $row | array |
Definition at line 370 of file ReviewRoundDAO.inc.php.
References newDataObject().
Referenced by getByMonographFileId(), getLastReviewRoundByMonographId(), getReviewRound(), and getReviewRoundById().
| ReviewRoundDAO.build | ( | $ | submissionId, | |
| $ | stageId, | |||
| $ | round, | |||
| $ | status = null | |||
| ) |
Fetch a review round, creating it if needed.
| $submissionId | integer | |
| $stageId | integer One of the WORKFLOW_*_REVIEW_STAGE_ID constants. | |
| $round | integer | |
| $status | integer One of the REVIEW_ROUND_STATUS_* constants. |
Definition at line 37 of file ReviewRoundDAO.inc.php.
References getInsertReviewRoundId(), getReviewRound(), insertObject(), and newDataObject().
| & ReviewRoundDAO.getByMonographFileId | ( | $ | monographFileId | ) |
Retrieve a review round by a monograph file id.
| $monographFileId | int |
Definition at line 155 of file ReviewRoundDAO.inc.php.
References _fromRow().
| & ReviewRoundDAO.getByMonographId | ( | $ | monographId, | |
| $ | stageId = null, |
|||
| $ | round = null | |||
| ) |
Get an iterator of review round objects associated with this monograph
| $monographId | int | |
| $stageId | int (optional) | |
| $round | int (optional) |
Definition at line 195 of file ReviewRoundDAO.inc.php.
| ReviewRoundDAO.getCurrentRoundByMonographId | ( | $ | monographId, | |
| $ | stageId = null | |||
| ) |
Get the current review round for a given stage (or for the latest stage)
| $monographId | int | |
| $stageId | int |
Definition at line 218 of file ReviewRoundDAO.inc.php.
| ReviewRoundDAO.getEditorDecisionRoundStatus | ( | ) |
Return review round status that are related with editor decisions.
Definition at line 351 of file ReviewRoundDAO.inc.php.
Referenced by updateStatus().
| ReviewRoundDAO.getInsertReviewRoundId | ( | ) |
Get the ID of the last inserted review round.
Definition at line 262 of file ReviewRoundDAO.inc.php.
Referenced by build().
| & ReviewRoundDAO.getLastReviewRoundByMonographId | ( | $ | monographId, | |
| $ | stageId = null | |||
| ) |
Get the last review round for a give stage (or for the latest stage)
| $monographId | int | |
| $stageId | int |
Definition at line 237 of file ReviewRoundDAO.inc.php.
References _fromRow().
Referenced by updateStatus().
| ReviewRoundDAO.getReviewRound | ( | $ | submissionId, | |
| $ | stageId, | |||
| $ | round | |||
| ) |
Retrieve a review round
| $submissionId | integer | |
| $stageId | int One of the Stage_id_* constants. | |
| $round | int The review round to be retrieved. |
Definition at line 119 of file ReviewRoundDAO.inc.php.
References _fromRow().
Referenced by build().
| & ReviewRoundDAO.getReviewRoundById | ( | $ | reviewRoundId | ) |
Retrieve a review round by its id.
| int | $reviewRoundId |
Definition at line 137 of file ReviewRoundDAO.inc.php.
References _fromRow().
| ReviewRoundDAO.insertObject | ( | &$ | reviewRound | ) |
Insert a new review round.
| $reviewRound | ReviewRound |
Definition at line 75 of file ReviewRoundDAO.inc.php.
Referenced by build().
| ReviewRoundDAO.newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 66 of file ReviewRoundDAO.inc.php.
Referenced by _fromRow(), and build().
| ReviewRoundDAO.ReviewRoundDAO | ( | ) |
Constructor
Definition at line 22 of file ReviewRoundDAO.inc.php.
| ReviewRoundDAO.reviewRoundExists | ( | $ | monographId, | |
| $ | stageId, | |||
| $ | round | |||
| ) |
Check if a review round exists for a specified monograph.
| $monographId | int | |
| $round | int |
Definition at line 177 of file ReviewRoundDAO.inc.php.
| ReviewRoundDAO.updateObject | ( | &$ | reviewRound | ) |
Update an existing review round.
| $reviewRound | ReviewRound |
Definition at line 96 of file ReviewRoundDAO.inc.php.
| ReviewRoundDAO.updateStatus | ( | &$ | reviewRound, | |
| $ | reviewAssignments = array(), |
|||
| $ | status = null | |||
| ) |
FIXME #7386# Update the review round status. If review assignments is passed and no status, then this method will find the correct review round status based on the review round assignments state.
| $reviewRound | ReviewRound | |
| $reviewAssignments | array Review round review assignments. | |
| $status | int |
Definition at line 275 of file ReviewRoundDAO.inc.php.
References getEditorDecisionRoundStatus(), and getLastReviewRoundByMonographId().
1.7.1