Open Journal Systems
3.3.0
|
Public Member Functions | |
_fromRow ($row) | |
_getByIds ($submissionId=null, $stageId=null, $userGroupId=null, $userId=null, $roleId=null, $single=false) | |
build ($submissionId, $userGroupId, $userId, $recommendOnly=false, $canChangeMetadata=null) | |
deleteByAll ($submissionId, $userGroupId, $userId) | |
deleteObject ($stageAssignment) | |
editorAssignedToStage ($submissionId, $stageId=null) | |
getBaseQueryForAssignmentSelection () | |
getById ($stageAssignmentId) | |
getBySubmissionAndRoleId ($submissionId, $roleId, $stageId=null, $userId=null) | |
getBySubmissionAndStageId ($submissionId, $stageId=null, $userGroupId=null, $userId=null) | |
getBySubmissionAndUserIdAndStageId ($submissionId, $userId, $stageId=null) | |
getByUserGroupId ($userGroupId, $contextId) | |
getByUserId ($userId) | |
getEditorsAssignedToStage ($submissionId, $stageId) | |
getInsertId () | |
insertObject ($stageAssignment) | |
newDataObject () | |
updateObject ($stageAssignment) | |
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 StageAssignment objects.
Definition at line 19 of file StageAssignmentDAO.inc.php.
StageAssignmentDAO::_fromRow | ( | $row | ) |
Internal function to return an StageAssignment object from a row.
$row | array |
Definition at line 190 of file StageAssignmentDAO.inc.php.
References newDataObject().
Referenced by _getByIds(), and getById().
StageAssignmentDAO::_getByIds | ( | $submissionId = null , |
|
$stageId = null , |
|||
$userGroupId = null , |
|||
$userId = null , |
|||
$roleId = null , |
|||
$single = false |
|||
) |
Retrieve a stageAssignment by submission and stage IDs. Private method that holds most of the work. serves two purposes: returns a single assignment or returns a factory, depending on the calling context.
$submissionId | int |
$stageId | int optional |
$userGroupId | int optional |
$userId | int optional |
$roleId | int optional ROLE_ID_... |
$single | bool specify if only one stage assignment (default is a ResultFactory) |
Definition at line 305 of file StageAssignmentDAO.inc.php.
References _fromRow(), getBaseQueryForAssignmentSelection(), and DAO\retrieve().
Referenced by getBySubmissionAndRoleId(), getBySubmissionAndStageId(), getBySubmissionAndUserIdAndStageId(), and getByUserId().
StageAssignmentDAO::build | ( | $submissionId, | |
$userGroupId, | |||
$userId, | |||
$recommendOnly = false , |
|||
$canChangeMetadata = null |
|||
) |
Fetch a stageAssignment by symbolic info, building it if needed.
$submissionId | int |
$userGroupId | int |
$userId | int |
$recommendOnly | boolean |
$canChangeMetadata | boolean |
Definition at line 150 of file StageAssignmentDAO.inc.php.
References getBySubmissionAndStageId(), DAORegistry\getDAO(), getInsertId(), insertObject(), and newDataObject().
StageAssignmentDAO::deleteByAll | ( | $submissionId, | |
$userGroupId, | |||
$userId | |||
) |
Delete a stageAssignment by matching on all fields.
$submissionId | int Submission ID |
$userGroupId | int User group ID |
$userId | int User ID |
Definition at line 274 of file StageAssignmentDAO.inc.php.
References DAO\update().
Referenced by deleteObject().
StageAssignmentDAO::deleteObject | ( | $stageAssignment | ) |
Delete a StageAssignment.
$stageAssignment | StageAssignment |
Definition at line 260 of file StageAssignmentDAO.inc.php.
References deleteByAll().
StageAssignmentDAO::editorAssignedToStage | ( | $submissionId, | |
$stageId = null |
|||
) |
Test if an editor or a sub editor is assigned to the submission This test is used to determine what grid to place a submission into, and to know if the review stage can be started.
$submissionId | (int) The id of the submission being tested. |
$stageId | (int) The id of the stage being tested. |
Definition at line 100 of file StageAssignmentDAO.inc.php.
References DAO\retrieve().
StageAssignmentDAO::getBaseQueryForAssignmentSelection | ( | ) |
Base query to select an stage assignment.
Definition at line 355 of file StageAssignmentDAO.inc.php.
Referenced by _getByIds(), and getById().
StageAssignmentDAO::getById | ( | $stageAssignmentId | ) |
Retrieve an assignment by its ID
$stageAssignmentId | int |
Definition at line 26 of file StageAssignmentDAO.inc.php.
References _fromRow(), getBaseQueryForAssignmentSelection(), and DAO\retrieve().
StageAssignmentDAO::getBySubmissionAndRoleId | ( | $submissionId, | |
$roleId, | |||
$stageId = null , |
|||
$userId = null |
|||
) |
Retrieve StageAssignments by submission and role IDs.
$submissionId | int Submission ID |
$roleId | int ROLE_ID_... |
$stageId | int (optional) |
$userId | int (optional) |
Definition at line 55 of file StageAssignmentDAO.inc.php.
References _getByIds().
Referenced by getEditorsAssignedToStage().
StageAssignmentDAO::getBySubmissionAndStageId | ( | $submissionId, | |
$stageId = null , |
|||
$userGroupId = null , |
|||
$userId = null |
|||
) |
Retrieve StageAssignments by submission and stage IDs.
$submissionId | int |
$stageId | int (optional) |
$userGroupId | int (optional) |
$userId | int (optional) |
Definition at line 43 of file StageAssignmentDAO.inc.php.
References _getByIds().
Referenced by build().
StageAssignmentDAO::getBySubmissionAndUserIdAndStageId | ( | $submissionId, | |
$userId, | |||
$stageId = null |
|||
) |
Retrieve StageAssignments by submission and user IDs
$submissionId | int Submission ID |
$userId | int User ID |
$stageId | int optional WORKFLOW_STAGE_ID_... |
Definition at line 76 of file StageAssignmentDAO.inc.php.
References _getByIds().
StageAssignmentDAO::getByUserGroupId | ( | $userGroupId, | |
$contextId | |||
) |
Retrieve all assignments by UserGroupId and ContextId
$userGroupId | int |
$contextId | int |
Definition at line 125 of file StageAssignmentDAO.inc.php.
References DAO\retrieve().
StageAssignmentDAO::getByUserId | ( | $userId | ) |
Get by user ID
$userId | int |
Definition at line 64 of file StageAssignmentDAO.inc.php.
References _getByIds().
StageAssignmentDAO::getEditorsAssignedToStage | ( | $submissionId, | |
$stageId | |||
) |
Get editor stage assignments.
$submissionId | int |
$stageId | int |
Definition at line 86 of file StageAssignmentDAO.inc.php.
References getBySubmissionAndRoleId().
StageAssignmentDAO::getInsertId | ( | ) |
Get the ID of the last inserted stage assignment.
Definition at line 288 of file StageAssignmentDAO.inc.php.
References DAO\_getInsertId().
Referenced by build().
StageAssignmentDAO::insertObject | ( | $stageAssignment | ) |
Insert a new StageAssignment.
$stageAssignment | StageAssignment |
Definition at line 209 of file StageAssignmentDAO.inc.php.
References DAO\datetimeToDB(), Core\getCurrentDate(), and DAO\update().
Referenced by build().
StageAssignmentDAO::newDataObject | ( | ) |
Construct a new data object corresponding to this DAO.
Definition at line 181 of file StageAssignmentDAO.inc.php.
Referenced by _fromRow(), and build().
StageAssignmentDAO::updateObject | ( | $stageAssignment | ) |
Update a new StageAssignment.
$stageAssignment | StageAssignment |
Definition at line 232 of file StageAssignmentDAO.inc.php.
References DAO\datetimeToDB(), Core\getCurrentDate(), and DAO\update().