|
ILIAS
release_8 Revision v8.24
|
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PRG-tree. More...
Collaboration diagram for ilPRGAssignment:Public Member Functions | |
| __construct (int $id, int $usr_id) | |
| getId () | |
| getUserId () | |
| getLastChangeBy () | |
| getLastChange () | |
| withLastChange (int $last_change_by, \DateTimeImmutable $last_change) | |
| getRestartDate () | |
| getRestartedAssignmentId () | |
| isRestarted () | |
| withRestarted (int $restarted_asssignment_id, \DateTimeImmutable $restart_date=null) | |
| isManuallyAssigned () | |
| withManuallyAssigned (bool $manual) | |
| withUserInformation (ilPRGUserInformation $user_info) | |
| getUserInformation () | |
| withProgressTree (ilPRGProgress $progress) | |
| getProgressTree () | |
| getRootId () | |
| getProgresses (array &$ret=[], ilPRGProgress $pgs=null) | |
| getProgressForNode (int $node_id) | |
| getProgressesWithDeadline (DateTimeImmutable $deadline) | |
| withEvents (StudyProgrammeEvents $events) | |
| getEvents () | |
Data Fields | |
| const | DATE_TIME_FORMAT = 'Y-m-d H:i:s' |
| const | DATE_FORMAT = 'Y-m-d' |
| const | NO_RESTARTED_ASSIGNMENT = -1 |
| const | AUTO_ASSIGNED_BY_ROLE = -1 |
| const | AUTO_ASSIGNED_BY_ORGU = -2 |
| const | AUTO_ASSIGNED_BY_COURSE = -3 |
| const | AUTO_ASSIGNED_BY_GROUP = -4 |
Protected Attributes | |
| int | $id |
| int | $usr_id |
| DateTimeImmutable | $last_change = null |
| int | $last_change_by = null |
| DateTimeImmutable$restart_date = null | |
| int | $restarted_asssignment_id = self::NO_RESTARTED_ASSIGNMENT |
| bool | $manually_assigned |
| array | $progresses = [] |
| ilPRGProgress | $progress |
| ilPRGUserInformation | $user_info |
| StudyProgrammeEvents | $events |
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PRG-tree.
Definition at line 28 of file class.ilPRGAssignment.php.
| ilPRGAssignment::__construct | ( | int | $id, |
| int | $usr_id | ||
| ) |
Definition at line 57 of file class.ilPRGAssignment.php.
| ilPRGAssignment::getEvents | ( | ) |
Definition at line 211 of file class.ilPRGAssignment.php.
| ilPRGAssignment::getId | ( | ) |
Definition at line 64 of file class.ilPRGAssignment.php.
References $id.
Referenced by ilStudyProgrammeEvents\deadlineChange(), PRGEventsDelayed\deadlineChange(), ilObjStudyProgramme\getProgressIdString(), ilStudyProgrammeEvents\informUserByMailToRestart(), PRGEventsDelayed\informUserByMailToRestart(), ilObjStudyProgramme\removeAssignment(), ilPRGAssignmentDBRepository\resetExpiryInfoSentFor(), ilPRGAssignmentDBRepository\resetRiskyToFailSentFor(), ilStudyProgrammeEvents\scoreChange(), PRGEventsDelayed\scoreChange(), ilPRGAssignmentDBRepository\store(), ilPRGAssignmentDBRepository\storeExpiryInfoSentFor(), ilPRGAssignmentDBRepository\storeRiskyToFailSentFor(), ilStudyProgrammeUserTable\toRow(), ilStudyProgrammeEvents\userAssigned(), PRGEventsDelayed\userAssigned(), ilStudyProgrammeEvents\userDeassigned(), PRGEventsDelayed\userDeassigned(), ilStudyProgrammeEvents\userReAssigned(), PRGEventsDelayed\userReAssigned(), ilStudyProgrammeEvents\userRevertSuccessful(), PRGEventsDelayed\userRevertSuccessful(), ilStudyProgrammeEvents\userRiskyToFail(), PRGEventsDelayed\userRiskyToFail(), ilStudyProgrammeEvents\userSuccessful(), PRGEventsDelayed\userSuccessful(), ilStudyProgrammeEvents\validityChange(), and PRGEventsDelayed\validityChange().
Here is the caller graph for this function:| ilPRGAssignment::getLastChange | ( | ) |
Definition at line 79 of file class.ilPRGAssignment.php.
References $last_change.
Referenced by ilPRGAssignmentDBRepository\store(), and withLastChange().
Here is the caller graph for this function:| ilPRGAssignment::getLastChangeBy | ( | ) |
Definition at line 74 of file class.ilPRGAssignment.php.
References $last_change_by.
Referenced by ilPRGAssignmentDBRepository\store(), and ilStudyProgrammeUserTable\toRow().
Here is the caller graph for this function:| ilPRGAssignment::getProgresses | ( | array & | $ret = [], |
| ilPRGProgress | $pgs = null |
||
| ) |
Definition at line 169 of file class.ilPRGAssignment.php.
References $id.
Referenced by ilObjStudyProgramme\removeAssignment(), and ilPRGAssignmentDBRepository\store().
Here is the caller graph for this function:| ilPRGAssignment::getProgressesWithDeadline | ( | DateTimeImmutable | $deadline | ) |
Definition at line 195 of file class.ilPRGAssignment.php.
| ilPRGAssignment::getProgressForNode | ( | int | $node_id | ) |
Definition at line 182 of file class.ilPRGAssignment.php.
References $path.
Referenced by ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsChangePoints(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsInitDates(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsMarkAccredited(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsMarkRelevant(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsSucceedAndDeadline(), and ilStudyProgrammeUserTable\toRow().
Here is the caller graph for this function:| ilPRGAssignment::getProgressTree | ( | ) |
Definition at line 159 of file class.ilPRGAssignment.php.
| ilPRGAssignment::getRestartDate | ( | ) |
Definition at line 104 of file class.ilPRGAssignment.php.
Referenced by ilPRGAssignmentDBRepository\store(), and ilStudyProgrammeUserTable\toRow().
Here is the caller graph for this function:| ilPRGAssignment::getRestartedAssignmentId | ( | ) |
Definition at line 109 of file class.ilPRGAssignment.php.
Referenced by ilPRGAssignmentDBRepository\store().
Here is the caller graph for this function:| ilPRGAssignment::getRootId | ( | ) |
Definition at line 164 of file class.ilPRGAssignment.php.
Referenced by ilStudyProgrammeEvents\deadlineChange(), PRGEventsDelayed\deadlineChange(), ilStudyProgrammeEvents\informUserByMailToRestart(), PRGEventsDelayed\informUserByMailToRestart(), ilObjStudyProgramme\removeAssignment(), ilPRGAssignmentDBRepository\resetExpiryInfoSentFor(), ilPRGAssignmentDBRepository\resetRiskyToFailSentFor(), ilStudyProgrammeEvents\scoreChange(), PRGEventsDelayed\scoreChange(), ilPRGAssignmentDBRepository\store(), ilPRGAssignmentDBRepository\storeExpiryInfoSentFor(), ilPRGAssignmentDBRepository\storeRiskyToFailSentFor(), ilStudyProgrammeUserTable\toRow(), ilStudyProgrammeEvents\userAssigned(), PRGEventsDelayed\userAssigned(), ilStudyProgrammeEvents\userDeassigned(), PRGEventsDelayed\userDeassigned(), ilStudyProgrammeEvents\userReAssigned(), PRGEventsDelayed\userReAssigned(), ilStudyProgrammeEvents\userRevertSuccessful(), PRGEventsDelayed\userRevertSuccessful(), ilStudyProgrammeEvents\userRiskyToFail(), PRGEventsDelayed\userRiskyToFail(), ilStudyProgrammeEvents\userSuccessful(), PRGEventsDelayed\userSuccessful(), ilStudyProgrammeEvents\validityChange(), and PRGEventsDelayed\validityChange().
Here is the caller graph for this function:| ilPRGAssignment::getUserId | ( | ) |
Definition at line 69 of file class.ilPRGAssignment.php.
References $usr_id.
Referenced by ilStudyProgrammeEvents\deadlineChange(), PRGEventsDelayed\deadlineChange(), ilObjStudyProgramme\getProgressIdString(), ilObjStudyProgramme\removeAssignment(), ilStudyProgrammeEvents\scoreChange(), PRGEventsDelayed\scoreChange(), ilPRGAssignmentDBRepository\store(), ilStudyProgrammeUserTable\toRow(), ilStudyProgrammeEvents\userAssigned(), PRGEventsDelayed\userAssigned(), ilStudyProgrammeEvents\userDeassigned(), PRGEventsDelayed\userDeassigned(), ilStudyProgrammeEvents\userRevertSuccessful(), PRGEventsDelayed\userRevertSuccessful(), ilStudyProgrammeEvents\userSuccessful(), PRGEventsDelayed\userSuccessful(), ilStudyProgrammeEvents\validityChange(), and PRGEventsDelayed\validityChange().
Here is the caller graph for this function:| ilPRGAssignment::getUserInformation | ( | ) |
Definition at line 147 of file class.ilPRGAssignment.php.
Referenced by ilStudyProgrammeUserTable\toRow().
Here is the caller graph for this function:| ilPRGAssignment::isManuallyAssigned | ( | ) |
Definition at line 129 of file class.ilPRGAssignment.php.
Referenced by ilPRGAssignmentDBRepository\store(), and ilStudyProgrammeUserTable\toRow().
Here is the caller graph for this function:| ilPRGAssignment::isRestarted | ( | ) |
Definition at line 114 of file class.ilPRGAssignment.php.
| ilPRGAssignment::withEvents | ( | StudyProgrammeEvents | $events | ) |
Definition at line 204 of file class.ilPRGAssignment.php.
| ilPRGAssignment::withLastChange | ( | int | $last_change_by, |
| \DateTimeImmutable | $last_change | ||
| ) |
Definition at line 84 of file class.ilPRGAssignment.php.
References $last_change, and getLastChange().
Here is the call graph for this function:| ilPRGAssignment::withManuallyAssigned | ( | bool | $manual | ) |
Definition at line 134 of file class.ilPRGAssignment.php.
| ilPRGAssignment::withProgressTree | ( | ilPRGProgress | $progress | ) |
Definition at line 153 of file class.ilPRGAssignment.php.
Referenced by ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsMarkAccredited(), and ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsSucceedAndDeadline().
Here is the caller graph for this function:| ilPRGAssignment::withRestarted | ( | int | $restarted_asssignment_id, |
| \DateTimeImmutable | $restart_date = null |
||
| ) |
Definition at line 119 of file class.ilPRGAssignment.php.
| ilPRGAssignment::withUserInformation | ( | ilPRGUserInformation | $user_info | ) |
Definition at line 141 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 55 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 42 of file class.ilPRGAssignment.php.
Referenced by __construct(), and getId().
|
protected |
Definition at line 44 of file class.ilPRGAssignment.php.
Referenced by getLastChange(), and withLastChange().
|
protected |
Definition at line 45 of file class.ilPRGAssignment.php.
Referenced by getLastChangeBy().
|
protected |
Definition at line 48 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 53 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 52 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 47 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 54 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 43 of file class.ilPRGAssignment.php.
Referenced by __construct(), and getUserId().
| const ilPRGAssignment::AUTO_ASSIGNED_BY_COURSE = -3 |
Definition at line 39 of file class.ilPRGAssignment.php.
| const ilPRGAssignment::AUTO_ASSIGNED_BY_GROUP = -4 |
Definition at line 40 of file class.ilPRGAssignment.php.
| const ilPRGAssignment::AUTO_ASSIGNED_BY_ORGU = -2 |
Definition at line 38 of file class.ilPRGAssignment.php.
| const ilPRGAssignment::AUTO_ASSIGNED_BY_ROLE = -1 |
Definition at line 37 of file class.ilPRGAssignment.php.
| const ilPRGAssignment::DATE_FORMAT = 'Y-m-d' |
Definition at line 33 of file class.ilPRGAssignment.php.
| const ilPRGAssignment::DATE_TIME_FORMAT = 'Y-m-d H:i:s' |
Definition at line 32 of file class.ilPRGAssignment.php.
Referenced by ilPRGAssignmentDBRepository\assignmentByRow(), ilPRGAssignmentDBRepository\store(), and ilStudyProgrammeAssignmentTest\testPRGAssignmentProperties().
|
protected |
Definition at line 46 of file class.ilPRGAssignment.php.
| const ilPRGAssignment::NO_RESTARTED_ASSIGNMENT = -1 |
Definition at line 35 of file class.ilPRGAssignment.php.