|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 Profile $profile, 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) | |
| createFor (int $prg_obj_id, int $usr_id, int $assigning_usr_id) | |
| get (int $id) | |
| store (ilPRGAssignment $assignment) | |
| delete (ilPRGAssignment $assignment) | |
| deleteAllAssignmentsForProgrammeId (int $prg_obj_id) | |
| getForUser (int $usr_id) | |
| get all assignments for a user More... | |
| 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) | |
| getDashboardInstancesforUser (int $usr_id) | |
| getAboutToExpire (array $programmes_and_due, bool $discard_formerly_notified=true) | |
| getExpiredAndNotInvalidated () | |
| 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... | |
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 27 of file class.ilPRGAssignmentDBRepository.php.
| ilPRGAssignmentDBRepository::__construct | ( | protected ilDBInterface | $db, |
| protected ilTree | $tree, | ||
| protected Profile | $profile, | ||
| protected ilStudyProgrammeSettingsRepository | $settings_repo, | ||
| protected PRGEventsDelayed | $events, | ||
| ilExportFieldsInfo | $user_field_info | ||
| ) |
Definition at line 68 of file class.ilPRGAssignmentDBRepository.php.
References ilExportFieldsInfo\getSelectableFieldsInfo(), and ilPRGUserInformation\MANDATORY_FIELDS.
Here is the call graph for this function:
|
protected |
Definition at line 484 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\DATE_TIME_FORMAT, and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Definition at line 557 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGProgress\DATE_FORMAT, and ilPRGProgress\DATE_TIME_FORMAT.
|
protected |
Definition at line 519 of file class.ilPRGAssignmentDBRepository.php.
References $c, and ilContainerReference\_lookupTargetId().
Here is the call graph for this function:
|
protected |
Definition at line 620 of file class.ilPRGAssignmentDBRepository.php.
References ILIAS\Repository\profile().
Here is the call graph for this function:
|
protected |
Definition at line 446 of file class.ilPRGAssignmentDBRepository.php.
References $res.
| 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 229 of file class.ilPRGAssignmentDBRepository.php.
| ilPRGAssignmentDBRepository::createFor | ( | int | $prg_obj_id, |
| int | $usr_id, | ||
| int | $assigning_usr_id | ||
| ) |
Implements PRGAssignmentRepository.
Definition at line 89 of file class.ilPRGAssignmentDBRepository.php.
| ilPRGAssignmentDBRepository::delete | ( | ilPRGAssignment | $assignment | ) |
Implements PRGAssignmentRepository.
Definition at line 148 of file class.ilPRGAssignmentDBRepository.php.
References $ass_id.
Referenced by ilObjStudyProgramme\removeMemberFromProgrammes().
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::deleteAllAssignmentsForProgrammeId | ( | int | $prg_obj_id | ) |
Implements PRGAssignmentRepository.
Definition at line 160 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 167 of file class.ilPRGAssignmentDBRepository.php.
| ilPRGAssignmentDBRepository::get | ( | int | $id | ) |
Implements PRGAssignmentRepository.
Definition at line 178 of file class.ilPRGAssignmentDBRepository.php.
References $id.
| ilPRGAssignmentDBRepository::getAboutToExpire | ( | array | $programmes_and_due, |
| bool | $discard_formerly_notified = true |
||
| ) |
| array | <int $prg_obj_id, DateTimeImmutable $due> |
Implements PRGAssignmentRepository.
Definition at line 288 of file class.ilPRGAssignmentDBRepository.php.
| 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 208 of file class.ilPRGAssignmentDBRepository.php.
| 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 246 of file class.ilPRGAssignmentDBRepository.php.
| ilPRGAssignmentDBRepository::getCertificateRelevantAssignmentIds | ( | int | $prg_obj_id, |
| int ... | $usr_id | ||
| ) |
Definition at line 853 of file class.ilPRGAssignmentDBRepository.php.
References $res, ilPRGProgress\STATUS_ACCREDITED, and ilPRGProgress\STATUS_COMPLETED.
| ilPRGAssignmentDBRepository::getDashboardInstancesforUser | ( | int | $usr_id | ) |
Implements PRGAssignmentRepository.
Definition at line 82 of file class.ilPRGAssignmentDBRepository.php.
References getForUser().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getExpiredAndNotInvalidated | ( | ) |
Implements PRGAssignmentRepository.
Definition at line 323 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGProgress\STATUS_ACCREDITED, and ilPRGProgress\STATUS_COMPLETED.
| ilPRGAssignmentDBRepository::getForUser | ( | int | $usr_id | ) |
get all assignments for a user
Implements PRGAssignmentRepository.
Definition at line 187 of file class.ilPRGAssignmentDBRepository.php.
Referenced by getDashboardInstancesforUser().
Here is the caller graph for this function:| ilPRGAssignmentDBRepository::getForUserOnNode | ( | int | $usr_id, |
| int | $root_prg_obj_id | ||
| ) |
Definition at line 197 of file class.ilPRGAssignmentDBRepository.php.
| 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 805 of file class.ilPRGAssignmentDBRepository.php.
References Vendor\Package\$a, and Vendor\Package\$b.
| 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 820 of file class.ilPRGAssignmentDBRepository.php.
References Vendor\Package\$a, Vendor\Package\$b, and $valid.
|
protected |
Definition at line 552 of file class.ilPRGAssignmentDBRepository.php.
References $ref_id, and ilObject\_lookupObjectId().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getPassedDeadline | ( | \DateTimeImmutable | $deadline | ) |
Implements PRGAssignmentRepository.
Definition at line 261 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGProgress\DATE_FORMAT, ilPRGProgress\STATUS_ACCREDITED, and ilPRGProgress\STATUS_IN_PROGRESS.
|
protected |
Definition at line 544 of file class.ilPRGAssignmentDBRepository.php.
References ilObject\_getAllReferences().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::getRiskyToFail | ( | array | $programmes_and_due, |
| bool | $discard_formerly_notified = true |
||
| ) |
Definition at line 347 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 646 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 603 of file class.ilPRGAssignmentDBRepository.php.
References ilObject\_lookupObjId(), ilObject\_lookupTitle(), and OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getInstance().
Here is the call graph for this function:
|
protected |
Definition at line 441 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 473 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 392 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 452 of file class.ilPRGAssignmentDBRepository.php.
References $res.
| ilPRGAssignmentDBRepository::resetExpiryInfoSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 763 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 792 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 124 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(), and ilPRGAssignment\isManuallyAssigned().
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 747 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\getId(), and ilPRGAssignment\getRootId().
Here is the call graph for this function:
|
protected |
Definition at line 678 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().
Here is the call graph for this function:| ilPRGAssignmentDBRepository::storeRiskyToFailSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 776 of file class.ilPRGAssignmentDBRepository.php.
References ilPRGAssignment\getId(), and ilPRGAssignment\getRootId().
Here is the call graph for this function:
|
protected |
Definition at line 663 of file class.ilPRGAssignmentDBRepository.php.
References $q.
|
protected |
<id => ilPRGProgress>
Definition at line 66 of file class.ilPRGAssignmentDBRepository.php.
|
protected |
Definition at line 61 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_ID = 'id' |
Definition at line 30 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_LAST_CHANGE = 'last_change' |
Definition at line 33 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_LAST_CHANGE_BY = 'last_change_by' |
Definition at line 34 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_MANUALLY_ASSIGNED = 'assigned_manually' |
Definition at line 38 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_RESTART_DATE = 'restart_date' |
Definition at line 35 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_RESTART_MAIL = 'restart_mail_send' |
Definition at line 37 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_RESTARTED_ASSIGNMENT_ID = 'restarted_assignment_id' |
Definition at line 36 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_ROOT_PRG_ID = 'root_prg_id' |
Definition at line 32 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_FIELD_USR_ID = 'usr_id' |
Definition at line 31 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::ASSIGNMENT_TABLE = 'prg_usr_assignments' |
Definition at line 29 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::DATE_FORMAT_ENDOFDAY = 'Y-m-d 23:59:59' |
Definition at line 59 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_ASSIGNMENT_DATE = 'assignment_date' |
Definition at line 48 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_ASSIGNMENT_ID = 'assignment_id' |
Definition at line 41 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_COMPLETION_BY = 'completion_by' |
Definition at line 47 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_COMPLETION_DATE = 'completion_date' |
Definition at line 51 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_DEADLINE = 'deadline' |
Definition at line 52 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig().
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_INVALIDATED = 'invalidated' |
Definition at line 54 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig(), and ilPRGAssignmentFilter\toConditions().
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_IS_INDIVIDUAL = 'individual' |
Definition at line 57 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_LAST_CHANGE = 'last_change' |
Definition at line 49 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_LAST_CHANGE_BY = 'last_change_by' |
Definition at line 50 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_MAIL_SENT_RISKYTOFAIL = 'sent_mail_risky_to_fail' |
Definition at line 55 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_MAIL_SENT_WILLEXPIRE = 'sent_mail_expires' |
Definition at line 56 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_POINTS = 'points' |
Definition at line 44 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_POINTS_CUR = 'points_cur' |
Definition at line 45 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_PRG_ID = 'prg_id' |
Definition at line 43 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_STATUS = 'status' |
Definition at line 46 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig(), and ilPRGAssignmentFilter\toConditions().
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_USR_ID = 'usr_id' |
Definition at line 42 of file class.ilPRGAssignmentDBRepository.php.
| const ilPRGAssignmentDBRepository::PROGRESS_FIELD_VQ_DATE = 'vq_date' |
Definition at line 53 of file class.ilPRGAssignmentDBRepository.php.
Referenced by ilPRGAssignmentFilter\getItemConfig().
| const ilPRGAssignmentDBRepository::PROGRESS_TABLE = 'prg_usr_progress' |
Definition at line 40 of file class.ilPRGAssignmentDBRepository.php.