Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct () | |
_cacheMiss ($cache, $id) | |
_fromRow ($row) | |
_getCache () | |
deleteByContextId ($contextId) | |
deleteById ($submissionId) | |
deleteObject ($submission) | |
flushCache () | |
getByContextId ($contextId) | |
getByPubId ($pubIdType, $pubId, $contextId=null) | |
getDefaultSortOption () | |
getExportable ($contextId, $pubIdType=null, $title=null, $author=null, $issueId=null, $pubIdSettingName=null, $pubIdSettingValue=null, $rangeInfo=null) | |
getInsertId () | |
getSortBy ($sortOption) | |
getSortDirection ($sortOption) | |
getSortOption ($sortBy, $sortDir) | |
getSortSelectOptions () | |
resetPermissions ($contextId) | |
![]() | |
getById ($objectId) | |
insertObject ($object) | |
newDataObject () | |
updateObject ($object) | |
![]() | |
__construct ($dataSource=null, $callHooks=true) | |
concat () | |
convertFromDB ($value, $type) | |
convertToDB ($value, &$type) | |
dateFromDB ($d) | |
datetimeFromDB ($dt) | |
datetimeToDB ($dt) | |
dateToDB ($d) | |
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) | |
Data Fields | |
$authorDao | |
$cache | |
$primaryKeyColumn = 'submission_id' | |
$primaryTableColumns | |
$schemaName = SCHEMA_SUBMISSION | |
$settingsTableName = 'submission_settings' | |
$tableName = 'submissions' | |
![]() | |
$primaryKeyColumn | |
$primaryTableColumns = array() | |
$schemaName | |
$settingsTableName | |
$tableName | |
![]() | |
$_dataSource | |
Additional Inherited Members | |
![]() | |
static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
![]() | |
_getInsertId ($table='', $id='') | |
Operations for retrieving and modifying Submission objects.
Definition at line 24 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::__construct | ( | ) |
Constructor.
Reimplemented in ReviewerSubmissionDAO.
Definition at line 56 of file PKPSubmissionDAO.inc.php.
References DAORegistry\getDAO().
PKPSubmissionDAO::_cacheMiss | ( | $cache, | |
$id | |||
) |
Callback for a cache miss.
$cache | Cache |
$id | string |
Definition at line 67 of file PKPSubmissionDAO.inc.php.
References $cache, and SchemaDAO\getById().
PKPSubmissionDAO::_fromRow | ( | $row | ) |
Return a DataObject from a result row
$primaryRow | array The result row from the primary table lookup |
Reimplemented from SchemaDAO.
Reimplemented in ReviewerSubmissionDAO.
Definition at line 88 of file PKPSubmissionDAO.inc.php.
References PKPServices\get().
Referenced by getExportable().
PKPSubmissionDAO::_getCache | ( | ) |
Get the submission cache.
Definition at line 77 of file PKPSubmissionDAO.inc.php.
References $cache, and CacheManager\getManager().
Referenced by flushCache().
PKPSubmissionDAO::deleteByContextId | ( | $contextId | ) |
Definition at line 245 of file PKPSubmissionDAO.inc.php.
References deleteById(), and getByContextId().
PKPSubmissionDAO::deleteById | ( | $submissionId | ) |
Delete a submission by ID.
$submissionId | int |
Reimplemented from SchemaDAO.
Reimplemented in SubmissionDAO.
Definition at line 109 of file PKPSubmissionDAO.inc.php.
References PKPServices\get(), SchemaDAO\getById(), and DAORegistry\getDAO().
Referenced by deleteByContextId(), and deleteObject().
PKPSubmissionDAO::deleteObject | ( | $submission | ) |
Delete a submission.
$submission | Submission |
Reimplemented from SchemaDAO.
Definition at line 101 of file PKPSubmissionDAO.inc.php.
References deleteById().
PKPSubmissionDAO::flushCache | ( | ) |
Flush the submission cache.
Reimplemented from DAO.
Definition at line 222 of file PKPSubmissionDAO.inc.php.
References _getCache().
Referenced by SubmissionDAO\changeStatus(), SubmissionDAO\deleteById(), SubmissionDAO\removeSubmissionsFromSection(), and resetPermissions().
PKPSubmissionDAO::getByContextId | ( | $contextId | ) |
Get all submissions for a context.
$contextId | int |
Definition at line 232 of file PKPSubmissionDAO.inc.php.
References DAO\retrieve().
Referenced by deleteByContextId(), and resetPermissions().
PKPSubmissionDAO::getByPubId | ( | $pubIdType, | |
$pubId, | |||
$contextId = null |
|||
) |
Retrieve submission by public id
$pubIdType | string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html). |
$pubId | string |
$contextId | int |
Definition at line 181 of file PKPSubmissionDAO.inc.php.
References SchemaDAO\getById(), and DAO\retrieve().
PKPSubmissionDAO::getDefaultSortOption | ( | ) |
Get default sort option.
Definition at line 279 of file PKPSubmissionDAO.inc.php.
References getSortOption().
PKPSubmissionDAO::getExportable | ( | $contextId, | |
$pubIdType = null , |
|||
$title = null , |
|||
$author = null , |
|||
$issueId = null , |
|||
$pubIdSettingName = null , |
|||
$pubIdSettingValue = null , |
|||
$rangeInfo = null |
|||
) |
Get all published submissions (eventually with a pubId assigned and) matching the specified settings.
$contextId | integer optional |
$pubIdType | string |
$title | string optional |
$author | string optional |
$issueId | integer optional |
$pubIdSettingName | string optional (e.g. crossref::status or crossref::registeredDoi) |
$pubIdSettingValue | string optional |
$rangeInfo | DBResultRange optional |
Definition at line 339 of file PKPSubmissionDAO.inc.php.
References _fromRow(), and DAO\retrieveRange().
PKPSubmissionDAO::getInsertId | ( | ) |
Get the ID of the last inserted submission.
Reimplemented from SchemaDAO.
Definition at line 215 of file PKPSubmissionDAO.inc.php.
References DAO\_getInsertId().
PKPSubmissionDAO::getSortBy | ( | $sortOption | ) |
Get sort way for a sort option.
$sortOption | string concat(sortBy, '-', sortDir) |
Definition at line 311 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::getSortDirection | ( | $sortOption | ) |
Get sort direction for a sort option.
$sortOption | string concat(sortBy, '-', sortDir) |
Definition at line 321 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::getSortOption | ( | $sortBy, | |
$sortDir | |||
) |
Get sort option.
$sortBy | string |
$sortDir | int |
Definition at line 302 of file PKPSubmissionDAO.inc.php.
Referenced by getDefaultSortOption(), and getSortSelectOptions().
PKPSubmissionDAO::getSortSelectOptions | ( | ) |
Get possible sort options.
Definition at line 287 of file PKPSubmissionDAO.inc.php.
References getSortOption().
PKPSubmissionDAO::resetPermissions | ( | $contextId | ) |
Reset the attached licenses of all submissions in a context to context defaults.
$contextId | int |
Definition at line 256 of file PKPSubmissionDAO.inc.php.
References flushCache(), PKPServices\get(), PKPApplication\get(), and getByContextId().
PKPSubmissionDAO::$authorDao |
Definition at line 26 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::$cache |
Definition at line 25 of file PKPSubmissionDAO.inc.php.
Referenced by _cacheMiss(), and _getCache().
PKPSubmissionDAO::$primaryKeyColumn = 'submission_id' |
The column name for the object id in primary and settings tables
Definition at line 38 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::$primaryTableColumns |
Maps schema properties for the primary table to their column names
Definition at line 41 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::$schemaName = SCHEMA_SUBMISSION |
One of the SCHEMA_... constants
Definition at line 29 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::$settingsTableName = 'submission_settings' |
The name of the settings table for this object
Definition at line 35 of file PKPSubmissionDAO.inc.php.
PKPSubmissionDAO::$tableName = 'submissions' |
The name of the primary table for this object
Definition at line 32 of file PKPSubmissionDAO.inc.php.