PHP Class ReviewerSubmissionDAO, ojs

Inheritance: extends DAO
Datei anzeigen Open project: pkp/ojs

Public Properties

Property Type Description
$authorDao
$reviewAssignmentDao
$submissionCommentDao
$submissionFileDao
$userDao

Public Methods

Method Description
__construct ( ) Constructor.
_fromRow ( $row ) : ReviewerSubmission Internal function to return a ReviewerSubmission object from a row.
getReviewerSubmission ( $reviewId ) : ReviewerSubmission Retrieve a reviewer submission by submission ID.
getReviewerSubmissionsByReviewerId ( $reviewerId, $journalId = null, $active = true, $skipDeclined = true, $rangeInfo = null, $sortBy = null, $sortDirection = SORT_DIRECTION_ASC ) : array Get all submissions for a reviewer of a journal.
getSortMapping ( $heading ) : string Map a column heading value to a database value for sorting
getSubmissionsCount ( $reviewerId, $journalId ) : array(int Get count of active and complete assignments
newDataObject ( ) : ReviewerSubmission Construct a new data object corresponding to this DAO.
updateReviewerSubmission ( $reviewerSubmission ) Update an existing review submission.

Method Details

__construct() public method

Constructor.
public __construct ( )

_fromRow() public method

Internal function to return a ReviewerSubmission object from a row.
public _fromRow ( $row ) : ReviewerSubmission
$row array
return ReviewerSubmission

getReviewerSubmission() public method

Retrieve a reviewer submission by submission ID.
public getReviewerSubmission ( $reviewId ) : ReviewerSubmission
return ReviewerSubmission

getReviewerSubmissionsByReviewerId() public method

Get all submissions for a reviewer of a journal.
public getReviewerSubmissionsByReviewerId ( $reviewerId, $journalId = null, $active = true, $skipDeclined = true, $rangeInfo = null, $sortBy = null, $sortDirection = SORT_DIRECTION_ASC ) : array
$reviewerId int
$journalId int
$rangeInfo object
return array ReviewerSubmissions

getSortMapping() public method

Map a column heading value to a database value for sorting
public getSortMapping ( $heading ) : string
return string

getSubmissionsCount() public method

Get count of active and complete assignments
public getSubmissionsCount ( $reviewerId, $journalId ) : array(int
return array(int

newDataObject() public method

Construct a new data object corresponding to this DAO.
public newDataObject ( ) : ReviewerSubmission
return ReviewerSubmission

updateReviewerSubmission() public method

Update an existing review submission.
public updateReviewerSubmission ( $reviewerSubmission )

Property Details

$authorDao public_oe property

public $authorDao

$reviewAssignmentDao public_oe property

public $reviewAssignmentDao

$submissionCommentDao public_oe property

public $submissionCommentDao

$submissionFileDao public_oe property

public $submissionFileDao

$userDao public_oe property

public $userDao