|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PRG-tree. More...
Inheritance diagram for ilPRGAssignmentDBRepository:
Collaboration diagram for ilPRGAssignmentDBRepository:Public Member Functions | |
| __construct (protected ilDBInterface $db, protected ilTree $tree, protected ilStudyProgrammeSettingsRepository $settings_repo, protected PRGEventsDelayed $events, ilExportFieldsInfo $user_field_info) | |
| getDashboardInstancesforUser (int $usr_id) | |
| createFor (int $prg_obj_id, int $usr_id, int $assigning_usr_id) | |
| store (ilPRGAssignment $assignment) | |
| delete (ilPRGAssignment $assignment) | |
| deleteAllAssignmentsForProgrammeId (int $prg_obj_id) | |
| get (int $id) | |
| getForUser (int $usr_id) | |
| get all assignments for a user More... | |
| getForUserOnNode (int $usr_id, int $root_prg_obj_id) | |
| getAllForNodeIsContained (int $prg_obj_id, array $user_filter=null, ilPRGAssignmentFilter $custom_filters=null) | |
| get all assignments for all (or given) users, where the given node is part of the assignment More... | |
| countAllForNodeIsContained (int $prg_obj_id, array $user_filter=null, ilPRGAssignmentFilter $custom_filters=null) | |
| Count all assignments for all (or given) users, where the given node is part of the assignment. More... | |
| getAllForSpecificNode (int $prg_obj_id, array $user_filter=null) | |
| get all assignments for all (or given) users, where the given node is the root-node of the assignment More... | |
| getPassedDeadline (\DateTimeImmutable $deadline) | |
| getAboutToExpire (array $programmes_and_due, bool $discard_formerly_notified=true) | |
| getExpiredAndNotInvalidated () | |
| getRiskyToFail (array $programmes_and_due, bool $discard_formerly_notified=true) | |
| storeExpiryInfoSentFor (ilPRGAssignment $ass) | |
| resetExpiryInfoSentFor (ilPRGAssignment $ass) | |
| storeRiskyToFailSentFor (ilPRGAssignment $ass) | |
| resetRiskyToFailSentFor (ilPRGAssignment $ass) | |
| getLatestAssignment (int $root_prg_obj_id, int $usr_id) | |
| Get the user's assignment on a prg that was created last. More... | |
| getLongestValidAssignment (int $root_prg_obj_id, int $usr_id) | |
| Get the user's assignment on a prg with the longest lasting qualification. More... | |
| getCertificateRelevantAssignmentIds (int $prg_obj_id, int ... $usr_id) | |
Protected Member Functions | |
| deleteAllOrphanedProgresses () | |
| query ($filter) | |
| nextId () | |
| count (array $filter) | |
| read (array $filter) | |
| prebuildProgressesForAssingment (int $assignment_id) | |
| assignmentByRow (array $row) | |
| buildProgressTreeFor (int $node_obj_id) | |
| getRefIdFor (int $obj_id) | |
| getObjIdFor (int $ref_id) | |
| buildProgressByRow (array $row) | |
| interimOrguLookup (int $usr_id) | |
| buildUserInformation (array $row) | |
| insertAssignmentRowDB (array $row) | |
| updateAssignmentRowDB (array $values) | |
| storeProgressRow (int $assignment_id, int $usr_id, ilPRGProgress $pgs) | |
Protected Attributes | |
| array | $user_data_fields |
| array | $progresses = [] |
| <id => ilPRGProgress> More... | |
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PRG-tree.
Definition at line 25 of file class.ilPRGAssignmentDBRepository.php.
| ilPRGAssignmentDBRepository::__construct | ( | protected ilDBInterface | $db, |
| protected ilTree | $tree, | ||
| protected ilStudyProgrammeSettingsRepository | $settings_repo, | ||
| protected PRGEventsDelayed | $events, | ||
| ilExportFieldsInfo | $user_field_info | ||
| ) |
Definition at line 66 of file class.ilPRGAssignmentDBRepository.php.
References ilExportFieldsInfo\getSelectableFieldsInfo(), and ilPRGUserInformation\MANDATORY_FIELDS.
Here is the call graph for this function:
|
protected |
Definition at line 485 of file class.ilPRGAssignmentDBRepository.php.
References buildProgressTreeFor(), buildUserInformation(), ilPRGAssignment\DATE_TIME_FORMAT, and ILIAS\Repository\int().
Referenced by createFor(), and read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 558 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGProgress\DATE_FORMAT, and ilPRGProgress\DATE_TIME_FORMAT.
Referenced by prebuildProgressesForAssingment().
Here is the caller graph for this function:
|
protected |
Definition at line 520 of file class.ilPRGAssignmentDBRepository.php.
References Vendor\Package\$c, and ilContainerReference\_lookupTargetId().
Referenced by assignmentByRow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 621 of file class.ilPRGAssignmentDBRepository.php.
References interimOrguLookup().
Referenced by assignmentByRow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 447 of file class.ilPRGAssignmentDBRepository.php.
Referenced by countAllForNodeIsContained(), getAboutToExpire(), getRefIdFor(), and getRiskyToFail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::countAllForNodeIsContained | ( | int | $prg_obj_id, |
| array | $user_filter = null, |
||
| ilPRGAssignmentFilter | $custom_filters = null |
||
| ) |
Count all assignments for all (or given) users, where the given node is part of the assignment.
Implements PRGAssignmentRepository.
Definition at line 230 of file class.ilPRGAssignmentDBRepository.php.
References count().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::createFor | ( | int | $prg_obj_id, |
| int | $usr_id, | ||
| int | $assigning_usr_id | ||
| ) |
Implements PRGAssignmentRepository.
Definition at line 86 of file class.ilPRGAssignmentDBRepository.php.
References Vendor\Package\$f, $res, ilObject\_lookupType(), assignmentByRow(), insertAssignmentRowDB(), nextId(), ilPRGAssignment\NO_RESTARTED_ASSIGNMENT, and ilUtil\now().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::delete | ( | ilPRGAssignment | $assignment | ) |
Implements PRGAssignmentRepository.
Definition at line 149 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilObjStudyProgramme\removeMemberFromProgrammes().
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::deleteAllAssignmentsForProgrammeId | ( | int | $prg_obj_id | ) |
Implements PRGAssignmentRepository.
Definition at line 161 of file class.ilPRGAssignmentDBRepository.php.
References deleteAllOrphanedProgresses().
Here is the call graph for this function:
|
protected |
Definition at line 168 of file class.ilPRGAssignmentDBRepository.php.
Referenced by deleteAllAssignmentsForProgrammeId().
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::get | ( | int | $id | ) |
Implements PRGAssignmentRepository.
Definition at line 179 of file class.ilPRGAssignmentDBRepository.php.
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getAboutToExpire | ( | array | $programmes_and_due, |
| bool | $discard_formerly_notified = true |
||
| ) |
| array | <int $prg_obj_id, DateTimeImmutable $due> |
Implements PRGAssignmentRepository.
Definition at line 289 of file class.ilPRGAssignmentDBRepository.php.
References count(), and read().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getAllForNodeIsContained | ( | int | $prg_obj_id, |
| array | $user_filter = null, |
||
| ilPRGAssignmentFilter | $custom_filters = null |
||
| ) |
get all assignments for all (or given) users, where the given node is part of the assignment
Implements PRGAssignmentRepository.
Definition at line 209 of file class.ilPRGAssignmentDBRepository.php.
References read().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getAllForSpecificNode | ( | int | $prg_obj_id, |
| array | $user_filter = null |
||
| ) |
get all assignments for all (or given) users, where the given node is the root-node of the assignment
Implements PRGAssignmentRepository.
Definition at line 247 of file class.ilPRGAssignmentDBRepository.php.
References read().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getCertificateRelevantAssignmentIds | ( | int | $prg_obj_id, |
| int ... | $usr_id | ||
| ) |
Definition at line 854 of file class.ilPRGAssignmentDBRepository.php.
References $r, $res, ilPRGProgress\STATUS_ACCREDITED, and ilPRGProgress\STATUS_COMPLETED.
| ilPRGAssignmentDBRepository::getDashboardInstancesforUser | ( | int | $usr_id | ) |
Implements PRGAssignmentRepository.
Definition at line 79 of file class.ilPRGAssignmentDBRepository.php.
References getForUser().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getExpiredAndNotInvalidated | ( | ) |
Implements PRGAssignmentRepository.
Definition at line 324 of file class.ilPRGAssignmentDBRepository.php.
References read(), ilPRGProgress\STATUS_ACCREDITED, and ilPRGProgress\STATUS_COMPLETED.
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getForUser | ( | int | $usr_id | ) |
get all assignments for a user
Implements PRGAssignmentRepository.
Definition at line 188 of file class.ilPRGAssignmentDBRepository.php.
References read().
Referenced by getDashboardInstancesforUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::getForUserOnNode | ( | int | $usr_id, |
| int | $root_prg_obj_id | ||
| ) |
Definition at line 198 of file class.ilPRGAssignmentDBRepository.php.
References read().
Referenced by getLatestAssignment(), and getLongestValidAssignment().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::getLatestAssignment | ( | int | $root_prg_obj_id, |
| int | $usr_id | ||
| ) |
Get the user's assignment on a prg that was created last.
Implements PRGAssignmentRepository.
Definition at line 806 of file class.ilPRGAssignmentDBRepository.php.
References Vendor\Package\$a, Vendor\Package\$b, getForUserOnNode(), and ilPRGAssignment\getProgressTree().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getLongestValidAssignment | ( | int | $root_prg_obj_id, |
| int | $usr_id | ||
| ) |
Get the user's assignment on a prg with the longest lasting qualification.
If there is more than one assignment with e.g. unlimited qualification, the valid assignment that was created (not finished) last is returned.
Implements PRGAssignmentRepository.
Definition at line 821 of file class.ilPRGAssignmentDBRepository.php.
References Vendor\Package\$a, Vendor\Package\$b, $valid, getForUserOnNode(), and ilPRGAssignment\getProgressTree().
Here is the call graph for this function:
|
protected |
Definition at line 553 of file class.ilPRGAssignmentDBRepository.php.
References ilObject\_lookupObjectId().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getPassedDeadline | ( | \DateTimeImmutable | $deadline | ) |
Implements PRGAssignmentRepository.
Definition at line 262 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGProgress\DATE_FORMAT, read(), ilPRGProgress\STATUS_ACCREDITED, and ilPRGProgress\STATUS_IN_PROGRESS.
Here is the call graph for this function:
|
protected |
Definition at line 545 of file class.ilPRGAssignmentDBRepository.php.
References ilObject\_getAllReferences(), and count().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getRiskyToFail | ( | array | $programmes_and_due, |
| bool | $discard_formerly_notified = true |
||
| ) |
Definition at line 348 of file class.ilPRGAssignmentDBRepository.php.
References count(), ilPRGProgress\DATE_FORMAT, read(), ilPRGProgress\STATUS_ACCREDITED, ilPRGProgress\STATUS_COMPLETED, and ilPRGProgress\STATUS_NOT_RELEVANT.
Here is the call graph for this function:
|
protected |
Definition at line 647 of file class.ilPRGAssignmentDBRepository.php.
Referenced by createFor().
Here is the caller graph for this function:
|
protected |
Definition at line 604 of file class.ilPRGAssignmentDBRepository.php.
References ilObject\_lookupObjId(), ilObject\_lookupTitle(), and OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getInstance().
Referenced by buildUserInformation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 442 of file class.ilPRGAssignmentDBRepository.php.
Referenced by createFor().
Here is the caller graph for this function:
|
protected |
Definition at line 474 of file class.ilPRGAssignmentDBRepository.php.
References $q, $res, and buildProgressByRow().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 393 of file class.ilPRGAssignmentDBRepository.php.
Referenced by count(), and read().
Here is the caller graph for this function:
|
protected |
Definition at line 453 of file class.ilPRGAssignmentDBRepository.php.
References $res, assignmentByRow(), prebuildProgressesForAssingment(), and query().
Referenced by get(), getAboutToExpire(), getAllForNodeIsContained(), getAllForSpecificNode(), getExpiredAndNotInvalidated(), getForUser(), getForUserOnNode(), getPassedDeadline(), and getRiskyToFail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::resetExpiryInfoSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 764 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\getId(), and ilPRGAssignment\getRootId().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::resetRiskyToFailSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 793 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\getId(), and ilPRGAssignment\getRootId().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::store | ( | ilPRGAssignment | $assignment | ) |
Implements PRGAssignmentRepository.
Definition at line 125 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\DATE_TIME_FORMAT, ilPRGAssignment\getId(), ilPRGAssignment\getLastChange(), ilPRGAssignment\getLastChangeBy(), ilPRGAssignment\getProgresses(), ilPRGAssignment\getRestartDate(), ilPRGAssignment\getRestartedAssignmentId(), ilPRGAssignment\getRootId(), ilPRGAssignment\getUserId(), ilPRGAssignment\isManuallyAssigned(), storeProgressRow(), and updateAssignmentRowDB().
Referenced by ilObjStudyProgramme\removeMemberFromProgrammes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::storeExpiryInfoSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 748 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\getId(), and ilPRGAssignment\getRootId().
Here is the call graph for this function:
|
protected |
Definition at line 679 of file class.ilPRGAssignmentDBRepository.php.
References $q, ilPRGProgress\DATE_FORMAT, ilPRGProgress\DATE_TIME_FORMAT, ilPRGProgress\getAmountOfPoints(), ilPRGProgress\getAssignmentDate(), ilPRGProgress\getCompletionBy(), ilPRGProgress\getCompletionDate(), ilPRGProgress\getCurrentAmountOfPoints(), ilPRGProgress\getDeadline(), ilPRGProgress\getLastChange(), ilPRGProgress\getLastChangeBy(), ilPRGProgress\getNodeId(), ilPRGProgress\getStatus(), ilPRGProgress\getValidityOfQualification(), ilPRGProgress\hasIndividualModifications(), and ilPRGProgress\isInvalidated().
Referenced by store().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::storeRiskyToFailSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 777 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\getId(), and ilPRGAssignment\getRootId().
Here is the call graph for this function:
|
protected |
Definition at line 664 of file class.ilPRGAssignmentDBRepository.php.
References $q.
Referenced by store().
Here is the caller graph for this function:
|
protected |
<id => ilPRGProgress>
Definition at line 64 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 59 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_ID = 'id' |
Definition at line 28 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_LAST_CHANGE = 'last_change' |
Definition at line 31 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_LAST_CHANGE_BY = 'last_change_by' |
Definition at line 32 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_MANUALLY_ASSIGNED = 'assigned_manually' |
Definition at line 36 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_RESTART_DATE = 'restart_date' |
Definition at line 33 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_RESTART_MAIL = 'restart_mail_send' |
Definition at line 35 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_RESTARTED_ASSIGNMENT_ID = 'restarted_assignment_id' |
Definition at line 34 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_ROOT_PRG_ID = 'root_prg_id' |
Definition at line 30 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_USR_ID = 'usr_id' |
Definition at line 29 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_TABLE = 'prg_usr_assignments' |
Definition at line 27 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::DATE_FORMAT_ENDOFDAY = 'Y-m-d 23:59:59' |
Definition at line 57 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_ASSIGNMENT_DATE = 'assignment_date' |
Definition at line 46 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_ASSIGNMENT_ID = 'assignment_id' |
Definition at line 39 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_COMPLETION_BY = 'completion_by' |
Definition at line 45 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_COMPLETION_DATE = 'completion_date' |
Definition at line 49 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_DEADLINE = 'deadline' |
Definition at line 50 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig().
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_INVALIDATED = 'invalidated' |
Definition at line 52 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig(), and ilPRGAssignmentFilter\toConditions().
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_IS_INDIVIDUAL = 'individual' |
Definition at line 55 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_LAST_CHANGE = 'last_change' |
Definition at line 47 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_LAST_CHANGE_BY = 'last_change_by' |
Definition at line 48 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_MAIL_SENT_RISKYTOFAIL = 'sent_mail_risky_to_fail' |
Definition at line 53 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_MAIL_SENT_WILLEXPIRE = 'sent_mail_expires' |
Definition at line 54 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_POINTS = 'points' |
Definition at line 42 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_POINTS_CUR = 'points_cur' |
Definition at line 43 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_PRG_ID = 'prg_id' |
Definition at line 41 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_STATUS = 'status' |
Definition at line 44 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig(), and ilPRGAssignmentFilter\toConditions().
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_USR_ID = 'usr_id' |
Definition at line 40 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_VQ_DATE = 'vq_date' |
Definition at line 51 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig().
| const ilPRGAssignmentDBRepository::PROGRESS_TABLE = 'prg_usr_progress' |
Definition at line 38 of file class.ilPRGAssignmentDBRepository.php.