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

Public Member Functions

_returnAuthorSubmissionFromRow (&$row)
 
 AuthorSubmissionDAO ()
 
getAuthorSubmission ($articleId)
 
getAuthorSubmissions ($authorId, $journalId, $active=true, $rangeInfo=null, $sortBy=null, $sortDirection=SORT_DIRECTION_ASC)
 
 getEditorDecisions ($articleId, $round=null)
 
 getSortMapping ($heading)
 
 getSubmissionsCount ($authorId, $journalId)
 
 updateAuthorSubmission (&$authorSubmission)
 
- 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 AuthorSubmission objects.

See Also
AuthorSubmission

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

Member Function Documentation

& AuthorSubmissionDAO::_returnAuthorSubmissionFromRow ( $row)

Internal function to return a AuthorSubmission object from a row.

Parameters
$rowarray
Returns
AuthorSubmission

Definition at line 95 of file AuthorSubmissionDAO.inc.php.

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

Referenced by getAuthorSubmission().

AuthorSubmissionDAO::AuthorSubmissionDAO ( )

Constructor.

Definition at line 33 of file AuthorSubmissionDAO.inc.php.

References DAORegistry\getDAO().

& AuthorSubmissionDAO::getAuthorSubmission (   $articleId)

Retrieve a author submission by article ID.

Parameters
$articleIdint
Returns
AuthorSubmission

Definition at line 52 of file AuthorSubmissionDAO.inc.php.

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

& AuthorSubmissionDAO::getAuthorSubmissions (   $authorId,
  $journalId,
  $active = true,
  $rangeInfo = null,
  $sortBy = null,
  $sortDirection = SORT_DIRECTION_ASC 
)

Get all author submissions for an author.

Parameters
$authorIdint
Returns
DAOResultFactory continaing AuthorSubmissions

Definition at line 167 of file AuthorSubmissionDAO.inc.php.

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

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

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

Parameters
$articleIdint
$roundint

Definition at line 219 of file AuthorSubmissionDAO.inc.php.

References DAO\retrieve().

Referenced by _returnAuthorSubmissionFromRow().

AuthorSubmissionDAO::getSortMapping (   $heading)

Map a column heading value to a database value for sorting

Parameters
string
Returns
string

Definition at line 283 of file AuthorSubmissionDAO.inc.php.

Referenced by getAuthorSubmissions().

AuthorSubmissionDAO::getSubmissionsCount (   $authorId,
  $journalId 
)

Get count of active, rejected, and complete assignments

Parameters
authorIdint
journalIdint

Definition at line 254 of file AuthorSubmissionDAO.inc.php.

References DAO\retrieve().

AuthorSubmissionDAO::updateAuthorSubmission ( $authorSubmission)

Update an existing author submission.

Parameters
$authorSubmissionAuthorSubmission

Definition at line 142 of file AuthorSubmissionDAO.inc.php.


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