Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
ReviewAssignmentDAO Class Reference
Inheritance diagram for ReviewAssignmentDAO:
PKPReviewAssignmentDAO DAO

Public Member Functions

_fromRow (&$row)
 
 _getSubmissionReviewFileId ($submissionId)
 
 deleteReviewAssignmentsByArticle ($articleId)
 
getAuthorViewableFilesByRound ($articleId)
 
 getAverageQualityRatings ($journalId)
 
 getCompletedReviewCounts ($journalId)
 
getReviewAssignmentById ($reviewId)
 
getReviewAssignmentsByArticleId ($articleId, $round=null)
 
getReviewAssignmentsByReviewFormId ($reviewFormId)
 
getReviewAssignmentsByUserId ($userId)
 
getReviewFilesByRound ($articleId)
 
 getReviewRoundJoin ()
 
 newDataObject ()
 
 ReviewAssignmentDAO ()
 
- Public Member Functions inherited from PKPReviewAssignmentDAO
_fromRow (&$row)
 
 deleteById ($reviewId)
 
 deleteBySubmissionId ($submissionId)
 
getById ($reviewId)
 
getByReviewFormId ($reviewFormId)
 
getBySubmissionId ($submissionId, $round=null, $stageId=null)
 
getByUserId ($userId)
 
getCancelsAndRegrets ($submissionId)
 
getEarliestNotificationByRound ($submissionId)
 
getIncompleteReviewAssignments ()
 
 getIncompleteReviewAssignmentsWhereString ()
 
 getInsertReviewId ()
 
getLastModifiedByRound ($submissionId)
 
getReviewAssignment ($submissionId, $reviewerId, $round, $stageId=null)
 
getReviewerIdsBySubmissionId ($submissionId, $round=null, $stageId=null)
 
getReviewIndexesForRound ($submissionId, $round)
 
 getReviewRoundJoin ()
 
 insertObject (&$reviewAssignment)
 
 newDataObject ()
 
 PKPReviewAssignmentDAO ()
 
 updateReviewAssignment (&$reviewAssignment)
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Class for DAO relating reviewers to articles.

See Also
ReviewAssignment

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

Member Function Documentation

& ReviewAssignmentDAO::_fromRow ( $row)

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

Parameters
$rowarray
Returns
ReviewAssignment

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

References _getSubmissionReviewFileId(), and HookRegistry\call().

ReviewAssignmentDAO::_getSubmissionReviewFileId (   $submissionId)

Return the review file ID for a submission, given its submission ID.

Parameters
$submissionIdint
Returns
int

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

References DAO\retrieve().

Referenced by _fromRow().

ReviewAssignmentDAO::deleteReviewAssignmentsByArticle (   $articleId)

Delete review assignments by article.

Parameters
$articleIdint
Returns
boolean

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

References PKPReviewAssignmentDAO\deleteBySubmissionId(), and Config\getVar().

& ReviewAssignmentDAO::getAuthorViewableFilesByRound (   $articleId)

Get all author-viewable reviewer files for an article for each round.

Parameters
$articleIdint
Returns
array returned[round][reviewer_index] = array of ArticleFiles

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

References DAO\retrieve().

ReviewAssignmentDAO::getAverageQualityRatings (   $journalId)

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

Returns
array

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

References DAO\retrieve().

ReviewAssignmentDAO::getCompletedReviewCounts (   $journalId)

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

Returns
array

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

References DAO\retrieve().

& ReviewAssignmentDAO::getReviewAssignmentById (   $reviewId)

Retrieve a review assignment by review assignment id.

Parameters
$reviewIdint
Returns
ReviewAssignment

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

References PKPReviewAssignmentDAO\getById(), and Config\getVar().

& ReviewAssignmentDAO::getReviewAssignmentsByArticleId (   $articleId,
  $round = null 
)

Get all review assignments for an article.

Parameters
$articleIdint
Returns
array ReviewAssignments

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

References PKPReviewAssignmentDAO\getBySubmissionId(), and Config\getVar().

& ReviewAssignmentDAO::getReviewAssignmentsByReviewFormId (   $reviewFormId)

Get all review assignments for a review form.

Parameters
$reviewFormIdint
Returns
array ReviewAssignments

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

References PKPReviewAssignmentDAO\getByReviewFormId(), and Config\getVar().

& ReviewAssignmentDAO::getReviewAssignmentsByUserId (   $userId)

Get all review assignments for a reviewer.

Parameters
$userIdint
Returns
array ReviewAssignments

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

References PKPReviewAssignmentDAO\getByUserId(), and Config\getVar().

& ReviewAssignmentDAO::getReviewFilesByRound (   $articleId)

Get a review file for an article for each round.

Parameters
$articleIdint
Returns
array ArticleFiles

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

References DAO\retrieve().

ReviewAssignmentDAO::getReviewRoundJoin ( )
ReviewAssignmentDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
ReviewAssignment

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

ReviewAssignmentDAO::ReviewAssignmentDAO ( )

Constructor.

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

References DAORegistry\getDAO().


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