|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| _fromRow ($row) | |
| deleteById ($commentId) | |
| deleteBySubmissionId ($submissionId) | |
| deleteObject ($submissionComment) | |
| getById ($commentId) | |
| getByUserId ($userId) | |
| getInsertId () | |
| getReviewerCommentsByReviewerId ($submissionId, $reviewerId=null, $reviewId=null, $viewable=null) | |
| getSubmissionComments ($submissionId, $commentType=null, $assocId=null) | |
| insertObject ($submissionComment) | |
| newDataObject () | |
| updateObject ($submissionComment) | |
Public Member Functions inherited from DAO | |
| __construct ($dataSource=null, $callHooks=true) | |
| concat () | |
| convertFromDB ($value, $type) | |
| convertToDB ($value, &$type) | |
| dateFromDB ($d) | |
| datetimeFromDB ($dt) | |
| datetimeToDB ($dt) | |
| dateToDB ($d) | |
| flushCache () | |
| formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true) | |
| getAdditionalFieldNames () | |
| getAffectedRows () | |
| getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
| getDataSource () | |
| getDirectionMapping ($direction) | |
| getDriver () | |
| getLocaleFieldNames () | |
| getType ($value) | |
| handleError ($dataSource, $sql) | |
| nullOrInt ($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 | |
Static Public Member Functions inherited from DAO | |
| static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
Data Fields inherited from DAO | |
| $_dataSource | |
Protected Member Functions inherited from DAO | |
| _getInsertId ($table='', $id='') | |
Operations for retrieving and modifying SubmissionComment objects.
Definition at line 19 of file SubmissionCommentDAO.inc.php.
| SubmissionCommentDAO::_fromRow | ( | $row | ) |
Creates and returns a submission comment object from a row
| $row | array |
Definition at line 116 of file SubmissionCommentDAO.inc.php.
References HookRegistry\call(), DAO\datetimeFromDB(), and newDataObject().
Referenced by getById().
| SubmissionCommentDAO::deleteById | ( | $commentId | ) |
Removes a submission note by id
| noteId | int |
Definition at line 183 of file SubmissionCommentDAO.inc.php.
References DAO\update().
Referenced by deleteObject().
| SubmissionCommentDAO::deleteBySubmissionId | ( | $submissionId | ) |
Delete all comments for a submission.
| $submissionId | int |
Definition at line 194 of file SubmissionCommentDAO.inc.php.
References DAO\update().
| SubmissionCommentDAO::deleteObject | ( | $submissionComment | ) |
Removes a submission comment from the submission_comments table
| SubmissionComment | object |
Definition at line 175 of file SubmissionCommentDAO.inc.php.
References deleteById().
| SubmissionCommentDAO::getById | ( | $commentId | ) |
Retrieve submission comment by id
| $commentId | int Comment ID. |
Definition at line 92 of file SubmissionCommentDAO.inc.php.
References _fromRow(), and DAO\retrieve().
| SubmissionCommentDAO::getByUserId | ( | $userId | ) |
Retrieve SubmissionComments by user id
| $userId | int User ID. |
Definition at line 50 of file SubmissionCommentDAO.inc.php.
References DAO\retrieve().
| SubmissionCommentDAO::getInsertId | ( | ) |
Get the ID of the last inserted submission comment.
Definition at line 167 of file SubmissionCommentDAO.inc.php.
References DAO\_getInsertId().
Referenced by insertObject().
| SubmissionCommentDAO::getReviewerCommentsByReviewerId | ( | $submissionId, | |
$reviewerId = null, |
|||
$reviewId = null, |
|||
$viewable = null |
|||
| ) |
Retrieve SubmissionComments made my reviewers on a submission
| $submissionId | int The submission Id that was reviewered/commented on. |
| $reviewerId | int The user id of the reviewer. |
| $reviewId | int (optional) The review assignment ID the comment pertains to. |
| $viewable | boolean True for only viewable comments; false for non-viewable; null for both |
Definition at line 66 of file SubmissionCommentDAO.inc.php.
References DAO\retrieve().
| SubmissionCommentDAO::getSubmissionComments | ( | $submissionId, | |
$commentType = null, |
|||
$assocId = null |
|||
| ) |
Retrieve SubmissionComments by submission id
| $submissionId | int Submission ID |
| $commentType | int Comment type |
| $assocId | int Assoc ID |
Definition at line 28 of file SubmissionCommentDAO.inc.php.
References DAO\retrieve().
| SubmissionCommentDAO::insertObject | ( | $submissionComment | ) |
inserts a new submission comment into the submission_comments table
| SubmissionNote | object |
Definition at line 140 of file SubmissionCommentDAO.inc.php.
References DAO\datetimeToDB(), getInsertId(), and DAO\update().
| SubmissionCommentDAO::newDataObject | ( | ) |
Construct a new DataObject.
Definition at line 107 of file SubmissionCommentDAO.inc.php.
Referenced by _fromRow().
| SubmissionCommentDAO::updateObject | ( | $submissionComment | ) |
Updates a submission comment
| SubmissionComment | object |
Definition at line 205 of file SubmissionCommentDAO.inc.php.
References DAO\datetimeToDB(), and DAO\update().