ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Represents one assignment of a user to a study programme. More...
Public Member Functions | |
__construct (ilStudyProgrammeAssignment $assignment, ilStudyProgrammeUserProgressDB $sp_user_progress_db, ilStudyProgrammeAssignmentRepository $assignment_repository, ilStudyProgrammeEvents $sp_events) | |
getId () | |
Get the id of the assignment. More... | |
getStudyProgramme () | |
Get the program node where this assignment was made. More... | |
getRestartDate () | |
Get the possible restart date of this assignment. More... | |
getRestartedAssignmentId () | |
Get restarted assignment id. More... | |
getRootProgress () | |
Get the progress on the root node of the programme. More... | |
restartAssignment () | |
Assign the user belonging to this assignment to the prg belonging to this assignment again. More... | |
informUserByMailToRestart () | |
getUserId () | |
deassign () | |
Remove this assignment. More... | |
delete () | |
Delete the assignment from database. More... | |
updateValidityFromProgram () | |
updateDeadlineFromProgram () | |
getSPAssignment () | |
Protected Attributes | |
$assignment | |
$assignment_repository | |
$sp_events | |
Private Attributes | |
$sp_user_progress_db | |
Represents one assignment of a user to a study programme.
A user could have multiple assignments per programme.
Definition at line 13 of file class.ilStudyProgrammeUserAssignment.php.
ilStudyProgrammeUserAssignment::__construct | ( | ilStudyProgrammeAssignment | $assignment, |
ilStudyProgrammeUserProgressDB | $sp_user_progress_db, | ||
ilStudyProgrammeAssignmentRepository | $assignment_repository, | ||
ilStudyProgrammeEvents | $sp_events | ||
) |
Definition at line 35 of file class.ilStudyProgrammeUserAssignment.php.
References $assignment, $assignment_repository, $sp_events, and $sp_user_progress_db.
ilStudyProgrammeUserAssignment::deassign | ( | ) |
Remove this assignment.
ilException |
Definition at line 133 of file class.ilStudyProgrammeUserAssignment.php.
References getStudyProgramme().
ilStudyProgrammeUserAssignment::delete | ( | ) |
Delete the assignment from database.
Definition at line 141 of file class.ilStudyProgrammeUserAssignment.php.
References getId(), ilObjStudyProgramme\getProgressForAssignment(), and getStudyProgramme().
Referenced by ilObjStudyProgramme\removeAssignment().
ilStudyProgrammeUserAssignment::getId | ( | ) |
Get the id of the assignment.
Definition at line 50 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by delete(), getRootProgress(), ilStudyProgrammeEvents\informUserByMailToRestart(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilPDStudyProgrammeSimpleListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilObjStudyProgramme\removeAssignment(), ilStudyProgrammeEvents\userAssigned(), and ilStudyProgrammeEvents\userDeassigned().
ilStudyProgrammeUserAssignment::getRestartDate | ( | ) |
Get the possible restart date of this assignment.
Definition at line 77 of file class.ilStudyProgrammeUserAssignment.php.
ilStudyProgrammeUserAssignment::getRestartedAssignmentId | ( | ) |
Get restarted assignment id.
Definition at line 85 of file class.ilStudyProgrammeUserAssignment.php.
ilStudyProgrammeUserAssignment::getRootProgress | ( | ) |
Get the progress on the root node of the programme.
ilException |
Definition at line 95 of file class.ilStudyProgrammeUserAssignment.php.
References getId(), and getStudyProgramme().
Referenced by updateDeadlineFromProgram(), and updateValidityFromProgram().
ilStudyProgrammeUserAssignment::getSPAssignment | ( | ) |
Definition at line 212 of file class.ilStudyProgrammeUserAssignment.php.
References $assignment, $DIC, Vendor\Package\$e, $lng, $log, $name, ilObjUser\_lookupFullname(), ilObjUser\_lookupGender(), ilObjUser\_lookupLogin(), and ilStudyProgrammeDIC\dic().
ilStudyProgrammeUserAssignment::getStudyProgramme | ( | ) |
Get the program node where this assignment was made.
Throws when program this assignment is about has no ref id.
ilException |
Definition at line 62 of file class.ilStudyProgrammeUserAssignment.php.
References ilObject\_getAllReferences(), and ilObjStudyProgramme\getInstanceByRefId().
Referenced by deassign(), delete(), ilObjStudyProgrammeMembersGUI\getAssignmentsById(), getRootProgress(), ilPDStudyProgrammeSimpleListGUI\hasPermission(), ilStudyProgrammeDashboardViewGUI\hasPermission(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilPDStudyProgrammeSimpleListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilObjStudyProgramme\removeAssignment(), restartAssignment(), updateDeadlineFromProgram(), updateValidityFromProgram(), ilStudyProgrammeEvents\userAssigned(), ilStudyProgrammeEvents\userDeassigned(), and ilStudyProgrammeEvents\userReAssigned().
ilStudyProgrammeUserAssignment::getUserId | ( | ) |
Definition at line 123 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by ilStudyProgrammeEvents\informUserByMailToRestart(), restartAssignment(), ilStudyProgrammeEvents\userAssigned(), ilStudyProgrammeEvents\userDeassigned(), and ilStudyProgrammeEvents\userReAssigned().
ilStudyProgrammeUserAssignment::informUserByMailToRestart | ( | ) |
Definition at line 118 of file class.ilStudyProgrammeUserAssignment.php.
ilStudyProgrammeUserAssignment::restartAssignment | ( | ) |
Assign the user belonging to this assignment to the prg belonging to this assignment again.
ilException |
Definition at line 106 of file class.ilStudyProgrammeUserAssignment.php.
References getStudyProgramme(), and getUserId().
ilStudyProgrammeUserAssignment::updateDeadlineFromProgram | ( | ) |
Definition at line 193 of file class.ilStudyProgrammeUserAssignment.php.
References getRootProgress(), and getStudyProgramme().
Referenced by ilObjStudyProgrammeMembersGUI\updateUserAssignmentFromProgramm().
ilStudyProgrammeUserAssignment::updateValidityFromProgram | ( | ) |
Definition at line 173 of file class.ilStudyProgrammeUserAssignment.php.
References getRootProgress(), and getStudyProgramme().
Referenced by ilObjStudyProgrammeMembersGUI\updateUserAssignmentFromProgramm().
|
protected |
Definition at line 18 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by __construct(), and getSPAssignment().
|
protected |
Definition at line 28 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by __construct().
|
private |
Definition at line 23 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by __construct().