ILIAS
release_8 Revision v8.19
|
Go to the source code of this file.
Variables | |
trait | ilPRGAssignmentActions |
This trait is for (physical) separation of code only; it is actually just part of an ilPRGAssignment and MUST not be used anywhere else. More... | |
|
protected |
Definition at line 213 of file ilPRGAssignmentActions.php.
References $format, ilPRGProgress\DATE_FORMAT, ilStudyProgrammeSettingsRepository\get(), ilPRGProgress\getDeadline(), ilPRGProgress\getNodeId(), getNow(), ilPRGProgress\getStatus(), ilPRGProgress\markFailed(), ilPRGProgress\markNotFailed(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, notifyProgressRevertSuccess(), recalculateProgressStatus(), ilPRGProgress\STATUS_FAILED, and ilPRGProgress\STATUS_IN_PROGRESS.
Referenced by changeProgressDeadline(), unmarkAccredited(), and updatePlanFromRepository().
changeAmountOfPoints | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $node_id, | ||
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection, | ||
int | $points | ||
) |
Definition at line 649 of file ilPRGAssignmentActions.php.
References ilPRGMessageCollection\add(), getNow(), getProgressIdString(), getZipper(), recalculateProgressStatus(), and updateParentProgresses().
changeProgressDeadline | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $node_id, | ||
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection, | ||
?DateTimeImmutable | $deadline | ||
) |
Definition at line 581 of file ilPRGAssignmentActions.php.
References ilPRGMessageCollection\add(), applyProgressDeadline(), getNow(), getProgressIdString(), getZipper(), notifyDeadlineChange(), and updateParentProgresses().
changeProgressValidityDate | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $node_id, | ||
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection, | ||
?DateTimeImmutable | $validity_date | ||
) |
Definition at line 615 of file ilPRGAssignmentActions.php.
References ilPRGMessageCollection\add(), ilPRGProgress\DATE_FORMAT, getNow(), getProgressIdString(), getZipper(), and notifyValidityChange().
|
protected |
Definition at line 55 of file ilPRGAssignmentActions.php.
References $c, $DIC, ilObject\_exists(), ilObject\_lookupDeletedDate(), ilContainerReference\_lookupTargetRefId(), and getRefIdFor().
Referenced by hasCompletedCourseChild().
|
protected |
Definition at line 41 of file ilPRGAssignmentActions.php.
Referenced by applyProgressDeadline(), changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), invalidate(), markAccredited(), markNotRelevant(), markProgressesFailedForExpiredDeadline(), markRelevant(), recalculateProgressStatus(), resetProgressToSettings(), succeed(), unmarkAccredited(), updateParentProgresses(), and updateProgressValidityFromSettings().
|
protected |
Definition at line 31 of file ilPRGAssignmentActions.php.
References ILIAS\Survey\Mode\getId().
Referenced by changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), markAccredited(), markNotRelevant(), markRelevant(), and unmarkAccredited().
|
protected |
Definition at line 46 of file ilPRGAssignmentActions.php.
References ilObject\_getAllReferences().
Referenced by getCourseReferencesInNode(), ilObjStudyProgramme\getInstanceByObjId(), ilObjStudyProgramme\getObjIdsOfChildren(), and ilObjStudyProgramme\getPrgInstanceByObjId().
|
protected |
Definition at line 292 of file ilPRGAssignmentActions.php.
Referenced by changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), initAssignmentDates(), invalidate(), markAccredited(), markNotRelevant(), markProgressesFailedForExpiredDeadline(), markRelevant(), resetProgresses(), succeed(), unmarkAccredited(), and updatePlanFromRepository().
|
protected |
Definition at line 73 of file ilPRGAssignmentActions.php.
References ilLPStatus\_hasUserCompleted(), ilContainerReference\_lookupTargetId(), getCourseReferencesInNode(), and ilPRGProgress\getNodeId().
initAssignmentDates | ( | ) |
Definition at line 320 of file ilPRGAssignmentActions.php.
References getZipper().
invalidate | ( | ilStudyProgrammeSettingsRepository | $settings_repo | ) |
Definition at line 681 of file ilPRGAssignmentActions.php.
References $path, getNow(), ILIAS\StudyProgramme\Assignment\Node\getPath(), getZipper(), and updateParentProgresses().
markAccredited | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
ilStudyProgrammeEvents | $events, | ||
int | $node_id, | ||
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 396 of file ilPRGAssignmentActions.php.
References ILIAS\LTI\ToolProvider\$settings, ilPRGMessageCollection\add(), ilStudyProgrammeSettingsRepository\get(), getNow(), getProgressIdString(), getZipper(), notifyProgressSuccess(), notifyScoreChange(), ilPRGProgress\STATUS_ACCREDITED, updateParentProgresses(), and updateProgressValidityFromSettings().
markNotRelevant | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $node_id, | ||
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 367 of file ilPRGAssignmentActions.php.
References ilPRGMessageCollection\add(), getNow(), getProgressIdString(), getZipper(), and updateParentProgresses().
markProgressesFailedForExpiredDeadline | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $acting_usr_id | ||
) |
Definition at line 551 of file ilPRGAssignmentActions.php.
References $path, ilPRGProgress\DATE_FORMAT, getNow(), ILIAS\StudyProgramme\Assignment\Node\getPath(), getZipper(), notifyProgressRevertSuccess(), and updateParentProgresses().
markRelevant | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $node_id, | ||
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 344 of file ilPRGAssignmentActions.php.
References ilPRGMessageCollection\add(), getNow(), getProgressIdString(), getZipper(), recalculateProgressStatus(), and updateParentProgresses().
|
protected |
Definition at line 307 of file ilPRGAssignmentActions.php.
References ilPRGProgress\getNodeId().
Referenced by changeProgressDeadline(), and updateProgressDeadlineFromSettings().
|
protected |
Definition at line 315 of file ilPRGAssignmentActions.php.
References ilPRGProgress\getNodeId().
Referenced by applyProgressDeadline(), markProgressesFailedForExpiredDeadline(), recalculateProgressStatus(), and unmarkAccredited().
|
protected |
Definition at line 299 of file ilPRGAssignmentActions.php.
References ilPRGProgress\getNodeId().
Referenced by markAccredited(), recalculateProgressStatus(), and succeed().
|
protected |
Definition at line 311 of file ilPRGAssignmentActions.php.
References ilPRGProgress\getNodeId().
Referenced by markAccredited(), recalculateProgressStatus(), resetProgressToSettings(), succeed(), and unmarkAccredited().
|
protected |
Definition at line 303 of file ilPRGAssignmentActions.php.
References ilPRGProgress\getNodeId().
Referenced by changeProgressValidityDate(), recalculateProgressStatus(), resetProgressToSettings(), and updateProgressValidityFromSettings().
|
protected |
Definition at line 84 of file ilPRGAssignmentActions.php.
References ilPRGProgress\COMPLETED_BY_SUBNODES, ilStudyProgrammeSettingsRepository\get(), ilPRGProgress\getAchievedPointsOfChildren(), ilPRGProgress\getAmountOfPoints(), ilPRGProgress\getNodeId(), getNow(), ilPRGProgress\getStatus(), ilPRGProgress\isRelevant(), ilPRGProgress\isSuccessful(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, ilStudyProgrammeSettings\MODE_UNDEFINED, notifyProgressRevertSuccess(), notifyProgressSuccess(), notifyScoreChange(), notifyValidityChange(), ilPRGProgress\STATUS_ACCREDITED, ilPRGProgress\STATUS_COMPLETED, ilPRGProgress\STATUS_IN_PROGRESS, ilPRGProgress\withCurrentAmountOfPoints(), and ilPRGProgress\withStatus().
Referenced by applyProgressDeadline(), changeAmountOfPoints(), markRelevant(), and updateParentProgresses().
resetProgresses | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $acting_usr_id | ||
) |
Definition at line 329 of file ilPRGAssignmentActions.php.
References getZipper(), resetProgressToSettings(), and updateProgressRelevanceFromSettings().
|
protected |
Definition at line 259 of file ilPRGAssignmentActions.php.
References ILIAS\LTI\ToolProvider\$settings, ilStudyProgrammeSettingsRepository\get(), ilPRGProgress\getAmountOfPoints(), ilPRGProgress\getNodeId(), getNow(), ilPRGProgress\isRelevant(), ilPRGProgress\isSuccessful(), notifyScoreChange(), notifyValidityChange(), updateProgressDeadlineFromSettings(), updateProgressValidityFromSettings(), ilPRGProgress\withAmountOfPoints(), ilPRGProgress\withCurrentAmountOfPoints(), and ilPRGProgress\withValidityOfQualification().
Referenced by resetProgresses(), and updatePlanFromRepository().
succeed | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $node_id, | ||
int | $triggering_obj_id | ||
) |
Definition at line 520 of file ilPRGAssignmentActions.php.
References $format, ILIAS\LTI\ToolProvider\$settings, ilPRGProgress\DATE_FORMAT, ilStudyProgrammeSettingsRepository\get(), ilPRGProgress\getDeadline(), getNow(), getZipper(), notifyProgressSuccess(), notifyScoreChange(), updateParentProgresses(), and updateProgressValidityFromSettings().
unmarkAccredited | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $node_id, | ||
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 443 of file ilPRGAssignmentActions.php.
References ilPRGMessageCollection\add(), applyProgressDeadline(), getNow(), getProgressIdString(), getZipper(), notifyProgressRevertSuccess(), notifyScoreChange(), ilPRGProgress\STATUS_COMPLETED, ilPRGProgress\STATUS_IN_PROGRESS, and updateParentProgresses().
|
protected |
Definition at line 134 of file ilPRGAssignmentActions.php.
References $format, ilPRGProgress\DATE_FORMAT, getNow(), ILIAS\StudyProgramme\Assignment\Zipper\isTop(), recalculateProgressStatus(), and ILIAS\StudyProgramme\Assignment\Zipper\toParent().
Referenced by changeAmountOfPoints(), changeProgressDeadline(), invalidate(), markAccredited(), markNotRelevant(), markProgressesFailedForExpiredDeadline(), markRelevant(), succeed(), unmarkAccredited(), and updatePlanFromRepository().
updatePlanFromRepository | ( | ilStudyProgrammeSettingsRepository | $settings_repo, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 492 of file ilPRGAssignmentActions.php.
References $path, applyProgressDeadline(), getZipper(), resetProgressToSettings(), updateParentProgresses(), and updateProgressRelevanceFromSettings().
|
protected |
Definition at line 181 of file ilPRGAssignmentActions.php.
References ilPRGProgress\getAssignmentDate(), ilStudyProgrammeDeadlineSettings\getDeadlineDate(), ilStudyProgrammeDeadlineSettings\getDeadlinePeriod(), notifyDeadlineChange(), and ilPRGProgress\withDeadline().
Referenced by resetProgressToSettings().
|
protected |
Definition at line 196 of file ilPRGAssignmentActions.php.
References ilStudyProgrammeSettingsRepository\get(), ilPRGProgress\getNodeId(), ilPRGProgress\isInProgress(), ilPRGProgress\isRelevant(), ilStudyProgrammeSettings\STATUS_ACTIVE, ilPRGProgress\STATUS_IN_PROGRESS, ilPRGProgress\STATUS_NOT_RELEVANT, and ilPRGProgress\withStatus().
Referenced by resetProgresses(), and updatePlanFromRepository().
|
protected |
Definition at line 158 of file ilPRGAssignmentActions.php.
References ilPRGProgress\DATE_FORMAT, ilPRGProgress\getCompletionDate(), getNow(), ilStudyProgrammeValidityOfAchievedQualificationSettings\getQualificationDate(), ilStudyProgrammeValidityOfAchievedQualificationSettings\getQualificationPeriod(), ilPRGProgress\isSuccessful(), notifyValidityChange(), and ilPRGProgress\withValidityOfQualification().
Referenced by markAccredited(), resetProgressToSettings(), and succeed().
trait ilPRGAssignmentActions |
This trait is for (physical) separation of code only; it is actually just part of an ilPRGAssignment and MUST not be used anywhere else.
Definition at line 28 of file ilPRGAssignmentActions.php.