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

Public Member Functions

 _generateUserNameSearchSQL ($search, $searchMatch, $prefix, &$params)
 
_returnCopyeditorSubmissionFromRow (&$row)
 
 CopyeditorSubmissionDAO ()
 
getCopyeditorSubmission ($articleId)
 
getCopyeditorSubmissionsByCopyeditorId ($copyeditorId, $journalId=null, $searchField=null, $searchMatch=null, $search=null, $dateField=null, $dateFrom=null, $dateTo=null, $active=true, $rangeInfo=null, $sortBy=null, $sortDirection=SORT_DIRECTION_ASC)
 
 getSortMapping ($heading)
 
 getSubmissionsCount ($copyeditorId, $journalId)
 
- 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 CopyeditorSubmission objects.

See Also
CopyeditorSubmission

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

Member Function Documentation

CopyeditorSubmissionDAO::_generateUserNameSearchSQL (   $search,
  $searchMatch,
  $prefix,
$params 
)

FIXME Move this into somewhere common (SubmissionDAO?) as this is used in several classes.

Definition at line 265 of file CopyeditorSubmissionDAO.inc.php.

References DAO\concat().

Referenced by getCopyeditorSubmissionsByCopyeditorId().

& CopyeditorSubmissionDAO::_returnCopyeditorSubmissionFromRow ( $row)

Internal function to return a CopyeditorSubmission object from a row.

Parameters
$rowarray
Returns
CopyeditorSubmission

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

References HookRegistry\call().

Referenced by getCopyeditorSubmission().

CopyeditorSubmissionDAO::CopyeditorSubmissionDAO ( )

Constructor.

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

References DAORegistry\getDAO().

& CopyeditorSubmissionDAO::getCopyeditorSubmission (   $articleId)

Retrieve a copyeditor submission by article ID.

Parameters
$articleIdint
Returns
CopyeditorSubmission

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

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

& CopyeditorSubmissionDAO::getCopyeditorSubmissionsByCopyeditorId (   $copyeditorId,
  $journalId = null,
  $searchField = null,
  $searchMatch = null,
  $search = null,
  $dateField = null,
  $dateFrom = null,
  $dateTo = null,
  $active = true,
  $rangeInfo = null,
  $sortBy = null,
  $sortDirection = SORT_DIRECTION_ASC 
)

Get all submissions for a copyeditor of a journal.

Parameters
$copyeditorIdint
$journalIdint optional
$searchFieldint SUBMISSION_FIELD_... constant
$searchMatchString 'is' or 'contains' or 'startsWith'
$searchString Search string
$dateFieldint SUBMISSION_FIELD_DATE_... constant
$dateFromint Search from timestamp
$dateToint Search to timestamp
Returns
array CopyeditorSubmissions

Definition at line 132 of file CopyeditorSubmissionDAO.inc.php.

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

CopyeditorSubmissionDAO::getSortMapping (   $heading)

Map a column heading value to a database value for sorting

Parameters
string
Returns
string

Definition at line 326 of file CopyeditorSubmissionDAO.inc.php.

Referenced by getCopyeditorSubmissionsByCopyeditorId().

CopyeditorSubmissionDAO::getSubmissionsCount (   $copyeditorId,
  $journalId 
)

Get count of active and complete assignments

Parameters
copyeditorIdint
journalIdint

Definition at line 288 of file CopyeditorSubmissionDAO.inc.php.

References DAO\retrieve().


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