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

Public Member Functions

_returnEditAssignmentFromRow (&$row)
 
 deleteEditAssignmentById ($editId)
 
 deleteEditAssignmentsByArticle ($articleId)
 
getEditAssignment ($editId)
 
getEditAssignmentsByArticleId ($articleId)
 
getEditAssignmentsByUserId ($userId)
 
getEditingSectionEditorAssignmentsByArticleId ($articleId)
 
getEditorAssignmentsByArticleId ($articleId)
 
 getEditorStatistics ($journalId)
 
 getInsertEditId ()
 
getReviewingSectionEditorAssignmentsByArticleId ($articleId)
 
 insertEditAssignment (&$editAssignment)
 
 updateEditAssignment (&$editAssignment)
 
- 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 editors to articles.

See Also
EditAssignment

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

Member Function Documentation

& EditAssignmentDAO::_returnEditAssignmentFromRow ( $row)

Internal function to return an edit assignment object from a row.

Parameters
$rowarray
Returns
EditAssignment

Definition at line 124 of file EditAssignmentDAO.inc.php.

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

Referenced by getEditAssignment().

EditAssignmentDAO::deleteEditAssignmentById (   $editId)

Delete edit assignment.

Parameters
$reviewIdint

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

References DAO\update().

EditAssignmentDAO::deleteEditAssignmentsByArticle (   $articleId)

Delete edit assignments by article.

Parameters
$articleIdint

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

References DAO\update().

& EditAssignmentDAO::getEditAssignment (   $editId)

Retrieve an edit assignment by id.

Parameters
$editIdint
Returns
EditAssignment

Definition at line 25 of file EditAssignmentDAO.inc.php.

References _returnEditAssignmentFromRow(), and DAO\retrieve().

& EditAssignmentDAO::getEditAssignmentsByArticleId (   $articleId)

Retrieve edit assignments by article id.

Parameters
$articleIdint
Returns
EditAssignment

Definition at line 47 of file EditAssignmentDAO.inc.php.

References DAO\retrieve().

& EditAssignmentDAO::getEditAssignmentsByUserId (   $userId)

Retrieve edit assignments by user id.

Parameters
$articleIdint
Returns
EditAssignment

Definition at line 109 of file EditAssignmentDAO.inc.php.

References DAO\retrieve().

& EditAssignmentDAO::getEditingSectionEditorAssignmentsByArticleId (   $articleId)

Retrieve those edit assignments that relate to section editors with editing access.

Parameters
$articleIdint
Returns
EditAssignment

Definition at line 94 of file EditAssignmentDAO.inc.php.

References DAO\retrieve().

& EditAssignmentDAO::getEditorAssignmentsByArticleId (   $articleId)

Retrieve those edit assignments that relate to full editors.

Parameters
$articleIdint
Returns
EditAssignment

Definition at line 62 of file EditAssignmentDAO.inc.php.

References DAO\retrieve().

EditAssignmentDAO::getEditorStatistics (   $journalId)

Get the assignment counts and last assigned date for all editors in the given journal.

Returns
array

Definition at line 229 of file EditAssignmentDAO.inc.php.

References DAO\retrieve().

EditAssignmentDAO::getInsertEditId ( )

Get the ID of the last inserted edit assignment.

Returns
int

Definition at line 221 of file EditAssignmentDAO.inc.php.

References DAO\getInsertId().

Referenced by insertEditAssignment().

& EditAssignmentDAO::getReviewingSectionEditorAssignmentsByArticleId (   $articleId)

Retrieve those edit assignments that relate to section editors with review access.

Parameters
$articleIdint
Returns
EditAssignment

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

References DAO\retrieve().

EditAssignmentDAO::insertEditAssignment ( $editAssignment)

Insert a new EditAssignment.

Parameters
$editAssignmentEditAssignment

Definition at line 149 of file EditAssignmentDAO.inc.php.

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

EditAssignmentDAO::updateEditAssignment ( $editAssignment)

Update an existing edit assignment.

Parameters
$editAssignmentEditAssignment

Definition at line 173 of file EditAssignmentDAO.inc.php.

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


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