ILIAS
release_8 Revision v8.19
|
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PRG-tree. More...
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.
References $events.
ilPRGAssignment::getId | ( | ) |
Definition at line 64 of file class.ilPRGAssignment.php.
References $id.
Referenced by PRGEventsDelayed\deadlineChange(), ilStudyProgrammeEvents\deadlineChange(), ilObjStudyProgramme\getProgressIdString(), PRGEventsDelayed\informUserByMailToRestart(), ilStudyProgrammeEvents\informUserByMailToRestart(), ilObjStudyProgramme\removeAssignment(), ilPRGAssignmentDBRepository\resetExpiryInfoSentFor(), ilPRGAssignmentDBRepository\resetRiskyToFailSentFor(), PRGEventsDelayed\scoreChange(), ilStudyProgrammeEvents\scoreChange(), ilPRGAssignmentDBRepository\store(), ilPRGAssignmentDBRepository\storeExpiryInfoSentFor(), ilPRGAssignmentDBRepository\storeRiskyToFailSentFor(), ilStudyProgrammeUserTable\toRow(), PRGEventsDelayed\userAssigned(), ilStudyProgrammeEvents\userAssigned(), PRGEventsDelayed\userDeassigned(), ilStudyProgrammeEvents\userDeassigned(), PRGEventsDelayed\userReAssigned(), ilStudyProgrammeEvents\userReAssigned(), PRGEventsDelayed\userRevertSuccessful(), ilStudyProgrammeEvents\userRevertSuccessful(), PRGEventsDelayed\userRiskyToFail(), ilStudyProgrammeEvents\userRiskyToFail(), PRGEventsDelayed\userSuccessful(), ilStudyProgrammeEvents\userSuccessful(), PRGEventsDelayed\validityChange(), and ilStudyProgrammeEvents\validityChange().
ilPRGAssignment::getLastChange | ( | ) |
Definition at line 79 of file class.ilPRGAssignment.php.
References $last_change.
Referenced by ilPRGAssignmentDBRepository\store(), and withLastChange().
ilPRGAssignment::getLastChangeBy | ( | ) |
Definition at line 74 of file class.ilPRGAssignment.php.
References $last_change_by.
Referenced by ilPRGAssignmentDBRepository\store(), and ilStudyProgrammeUserTable\toRow().
ilPRGAssignment::getProgresses | ( | array & | $ret = [] , |
ilPRGProgress | $pgs = null |
||
) |
Definition at line 169 of file class.ilPRGAssignment.php.
References getProgressTree().
Referenced by getProgressesWithDeadline(), ilObjStudyProgramme\removeAssignment(), and ilPRGAssignmentDBRepository\store().
ilPRGAssignment::getProgressesWithDeadline | ( | DateTimeImmutable | $deadline | ) |
Definition at line 195 of file class.ilPRGAssignment.php.
References getProgresses().
ilPRGAssignment::getProgressForNode | ( | int | $node_id | ) |
Definition at line 182 of file class.ilPRGAssignment.php.
References $path, and getProgressTree().
Referenced by ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsChangePoints(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsInitDates(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsMarkAccredited(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsMarkRelevant(), ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsSucceedAndDeadline(), and ilStudyProgrammeUserTable\toRow().
ilPRGAssignment::getProgressTree | ( | ) |
Definition at line 159 of file class.ilPRGAssignment.php.
References $progress.
Referenced by ilStudyProgrammeMailTemplateContext\getLatestAssignment(), ilStudyProgrammePlaceholderValues\getLatestSuccessfulAssignment(), ilStudyProgrammeMailTemplateContext\getLatestSuccessfulAssignment(), getProgresses(), and getProgressForNode().
ilPRGAssignment::getRestartDate | ( | ) |
Definition at line 104 of file class.ilPRGAssignment.php.
References $restart_date.
Referenced by ilPRGAssignmentDBRepository\store(), and ilStudyProgrammeUserTable\toRow().
ilPRGAssignment::getRestartedAssignmentId | ( | ) |
Definition at line 109 of file class.ilPRGAssignment.php.
References $restarted_asssignment_id.
Referenced by isRestarted(), and ilPRGAssignmentDBRepository\store().
ilPRGAssignment::getRootId | ( | ) |
Definition at line 164 of file class.ilPRGAssignment.php.
Referenced by PRGEventsDelayed\deadlineChange(), ilStudyProgrammeEvents\deadlineChange(), PRGEventsDelayed\informUserByMailToRestart(), ilStudyProgrammeEvents\informUserByMailToRestart(), ilObjStudyProgramme\removeAssignment(), ilPRGAssignmentDBRepository\resetExpiryInfoSentFor(), ilPRGAssignmentDBRepository\resetRiskyToFailSentFor(), PRGEventsDelayed\scoreChange(), ilStudyProgrammeEvents\scoreChange(), ilPRGAssignmentDBRepository\store(), ilPRGAssignmentDBRepository\storeExpiryInfoSentFor(), ilPRGAssignmentDBRepository\storeRiskyToFailSentFor(), ilStudyProgrammeUserTable\toRow(), PRGEventsDelayed\userAssigned(), ilStudyProgrammeEvents\userAssigned(), PRGEventsDelayed\userDeassigned(), ilStudyProgrammeEvents\userDeassigned(), PRGEventsDelayed\userReAssigned(), ilStudyProgrammeEvents\userReAssigned(), PRGEventsDelayed\userRevertSuccessful(), ilStudyProgrammeEvents\userRevertSuccessful(), PRGEventsDelayed\userRiskyToFail(), ilStudyProgrammeEvents\userRiskyToFail(), PRGEventsDelayed\userSuccessful(), ilStudyProgrammeEvents\userSuccessful(), PRGEventsDelayed\validityChange(), and ilStudyProgrammeEvents\validityChange().
ilPRGAssignment::getUserId | ( | ) |
Definition at line 69 of file class.ilPRGAssignment.php.
References $usr_id.
Referenced by PRGEventsDelayed\deadlineChange(), ilStudyProgrammeEvents\deadlineChange(), ilObjStudyProgramme\getProgressIdString(), ilObjStudyProgramme\removeAssignment(), PRGEventsDelayed\scoreChange(), ilStudyProgrammeEvents\scoreChange(), ilPRGAssignmentDBRepository\store(), ilStudyProgrammeUserTable\toRow(), PRGEventsDelayed\userAssigned(), ilStudyProgrammeEvents\userAssigned(), PRGEventsDelayed\userDeassigned(), ilStudyProgrammeEvents\userDeassigned(), PRGEventsDelayed\userRevertSuccessful(), ilStudyProgrammeEvents\userRevertSuccessful(), PRGEventsDelayed\userSuccessful(), ilStudyProgrammeEvents\userSuccessful(), PRGEventsDelayed\validityChange(), and ilStudyProgrammeEvents\validityChange().
ilPRGAssignment::getUserInformation | ( | ) |
Definition at line 147 of file class.ilPRGAssignment.php.
References $user_info.
Referenced by ilPRGMail\sendMail(), and ilStudyProgrammeUserTable\toRow().
ilPRGAssignment::isManuallyAssigned | ( | ) |
Definition at line 129 of file class.ilPRGAssignment.php.
References $manually_assigned.
Referenced by ilPRGAssignmentDBRepository\store(), and ilStudyProgrammeUserTable\toRow().
ilPRGAssignment::isRestarted | ( | ) |
Definition at line 114 of file class.ilPRGAssignment.php.
References getRestartedAssignmentId().
ilPRGAssignment::withEvents | ( | StudyProgrammeEvents | $events | ) |
ilPRGAssignment::withLastChange | ( | int | $last_change_by, |
\DateTimeImmutable | $last_change | ||
) |
Definition at line 84 of file class.ilPRGAssignment.php.
References $last_change, $last_change_by, and getLastChange().
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.
References $progress.
Referenced by ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsMarkAccredited(), and ilStudyProgrammeAssignmentActionsTest\testPRGAssignmentActionsSucceedAndDeadline().
ilPRGAssignment::withRestarted | ( | int | $restarted_asssignment_id, |
\DateTimeImmutable | $restart_date = null |
||
) |
Definition at line 119 of file class.ilPRGAssignment.php.
References $restart_date, and $restarted_asssignment_id.
ilPRGAssignment::withUserInformation | ( | ilPRGUserInformation | $user_info | ) |
|
protected |
Definition at line 55 of file class.ilPRGAssignment.php.
Referenced by getEvents(), and withEvents().
|
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(), and withLastChange().
|
protected |
Definition at line 48 of file class.ilPRGAssignment.php.
Referenced by isManuallyAssigned().
|
protected |
Definition at line 53 of file class.ilPRGAssignment.php.
Referenced by getProgressTree(), and withProgressTree().
|
protected |
Definition at line 52 of file class.ilPRGAssignment.php.
|
protected |
Definition at line 46 of file class.ilPRGAssignment.php.
Referenced by getRestartDate(), and withRestarted().
|
protected |
Definition at line 47 of file class.ilPRGAssignment.php.
Referenced by getRestartedAssignmentId(), and withRestarted().
|
protected |
Definition at line 54 of file class.ilPRGAssignment.php.
Referenced by getUserInformation(), and withUserInformation().
|
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().
const ilPRGAssignment::NO_RESTARTED_ASSIGNMENT = -1 |
Definition at line 35 of file class.ilPRGAssignment.php.
Referenced by ilPRGAssignmentDBRepository\createFor().