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

Public Member Functions

_returnReviewerSubmissionFromRow (&$row)
 
 getEditorDecisions ($articleId, $round=null)
 
getReviewerSubmission ($reviewId)
 
getReviewerSubmissionsByReviewerId ($reviewerId, $journalId, $active=true, $rangeInfo=null, $sortBy=null, $sortDirection=SORT_DIRECTION_ASC)
 
 getSortMapping ($heading)
 
 getSubmissionsCount ($reviewerId, $journalId)
 
 ReviewerSubmissionDAO ()
 
 updateReviewerSubmission (&$reviewerSubmission)
 
- 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

Operations for retrieving and modifying ReviewerSubmission objects.

See Also
ReviewerSubmission

Definition at line 19 of file ReviewerSubmissionDAO.inc.php.

Member Function Documentation

& ReviewerSubmissionDAO::_returnReviewerSubmissionFromRow ( $row)

Internal function to return a ReviewerSubmission object from a row.

Parameters
$rowarray
Returns
ReviewerSubmission

Definition at line 99 of file ReviewerSubmissionDAO.inc.php.

References HookRegistry\call(), DAO\datetimeFromDB(), and getEditorDecisions().

Referenced by getReviewerSubmission().

ReviewerSubmissionDAO::getEditorDecisions (   $articleId,
  $round = null 
)

Get the editor decisions for a review round of an article.

Parameters
$articleIdint
$roundint

Definition at line 300 of file ReviewerSubmissionDAO.inc.php.

References DAO\retrieve().

Referenced by _returnReviewerSubmissionFromRow().

& ReviewerSubmissionDAO::getReviewerSubmission (   $reviewId)

Retrieve a reviewer submission by article ID.

Parameters
$articleIdint
$reviewerIdint
Returns
ReviewerSubmission

Definition at line 50 of file ReviewerSubmissionDAO.inc.php.

References _returnReviewerSubmissionFromRow(), AppLocale\getLocale(), AppLocale\getPrimaryLocale(), and DAO\retrieve().

& ReviewerSubmissionDAO::getReviewerSubmissionsByReviewerId (   $reviewerId,
  $journalId,
  $active = true,
  $rangeInfo = null,
  $sortBy = null,
  $sortDirection = SORT_DIRECTION_ASC 
)

Get all submissions for a reviewer of a journal.

Parameters
$reviewerIdint
$journalIdint
$rangeInfoobject
Returns
array ReviewerSubmissions

Definition at line 199 of file ReviewerSubmissionDAO.inc.php.

References DAO\getDirectionMapping(), AppLocale\getLocale(), AppLocale\getPrimaryLocale(), getSortMapping(), and DAO\retrieveRange().

ReviewerSubmissionDAO::getSortMapping (   $heading)

Map a column heading value to a database value for sorting

Parameters
string
Returns
string

Definition at line 335 of file ReviewerSubmissionDAO.inc.php.

Referenced by getReviewerSubmissionsByReviewerId().

ReviewerSubmissionDAO::getSubmissionsCount (   $reviewerId,
  $journalId 
)

Get count of active and complete assignments

Parameters
reviewerIdint
journalIdint

Definition at line 263 of file ReviewerSubmissionDAO.inc.php.

References DAO\retrieve().

ReviewerSubmissionDAO::ReviewerSubmissionDAO ( )

Constructor.

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

References DAORegistry\getDAO().

ReviewerSubmissionDAO::updateReviewerSubmission ( $reviewerSubmission)

Update an existing review submission.

Parameters
$reviewSubmissionReviewSubmission

Definition at line 155 of file ReviewerSubmissionDAO.inc.php.

References DAO\datetimeToDB(), and DAO\update().


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