|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Represents one assignment of a user to a study programme. More...
Collaboration diagram for ilStudyProgrammeUserAssignment:Public Member Functions | |
| __construct ($a_id_or_model) | |
| Throws when id does not refer to a study programme assignment. More... | |
| getId () | |
| Get the id of the assignment. More... | |
| getStudyProgramme () | |
| Get the program node where this assignment was made. More... | |
| getRootProgress () | |
| Get the progress on the root node of the programme. More... | |
| getUserId () | |
| Get the id of the user who is assigned. More... | |
| deassign () | |
| Remove this assignment. More... | |
| delete () | |
| Delete the assignment from database. More... | |
| addMissingProgresses () | |
| Add missing progresses for new nodes in the programm. More... | |
Static Public Member Functions | |
| static | getInstance ($a_id) |
| Get an instance. More... | |
| static | getInstancesOfUser ($a_user_id) |
| Get all instances for a given user. More... | |
| static | getInstancesForProgram ($a_program_id) |
| Get all assignments that were made to the given program. More... | |
Data Fields | |
| $assignment | |
Represents one assignment of a user to a study programme.
A user could have multiple assignments per programme.
Definition at line 14 of file class.ilStudyProgrammeUserAssignment.php.
| ilStudyProgrammeUserAssignment::__construct | ( | $a_id_or_model | ) |
Throws when id does not refer to a study programme assignment.
| ilException |
| int | ilStudyProgrammeAssignment | $a_id_or_model |
Definition at line 23 of file class.ilStudyProgrammeUserAssignment.php.
| ilStudyProgrammeUserAssignment::addMissingProgresses | ( | ) |
Add missing progresses for new nodes in the programm.
The new progresses will be set to not relevant.
Definition at line 186 of file class.ilStudyProgrammeUserAssignment.php.
References $DIC, $ilLog, ilStudyProgrammeProgress\createFor(), getId(), getStudyProgramme(), and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
Here is the call graph for this function:| ilStudyProgrammeUserAssignment::deassign | ( | ) |
Remove this assignment.
Definition at line 140 of file class.ilStudyProgrammeUserAssignment.php.
References getStudyProgramme().
Here is the call graph for this function:| ilStudyProgrammeUserAssignment::delete | ( | ) |
Delete the assignment from database.
Definition at line 147 of file class.ilStudyProgrammeUserAssignment.php.
References getId(), and ilStudyProgrammeUserProgress\getInstancesForAssignment().
Referenced by ilObjStudyProgramme\removeAssignment().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeUserAssignment::getId | ( | ) |
Get the id of the assignment.
Definition at line 95 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by addMissingProgresses(), delete(), getRootProgress(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilPDStudyProgrammeSimpleListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilObjStudyProgramme\removeAssignment(), ilStudyProgrammeEvents\userAssigned(), and ilStudyProgrammeEvents\userDeassigned().
Here is the caller graph for this function:
|
static |
Get an instance.
Just wraps constructor.
| ilException |
| int | $a_id |
Definition at line 43 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by ilStudyProgrammeUserProgress\getAssignment(), and ilObjStudyProgrammeIndividualPlanGUI\getAssignmentObject().
Here is the caller graph for this function:
|
static |
Get all assignments that were made to the given program.
| int | $a_program_id |
Definition at line 82 of file class.ilStudyProgrammeUserAssignment.php.
References ActiveRecord\where().
Referenced by ilObjStudyProgramme\updateAllAssignments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get all instances for a given user.
| int | $a_user_id |
Definition at line 53 of file class.ilStudyProgrammeUserAssignment.php.
References $DIC, $ret, ilObject\_getAllReferences(), and ActiveRecord\where().
Referenced by ilStudyProgrammeAppEventListener\onServiceUserDeleteUser(), and ilPDStudyProgrammeSimpleListGUI\readUsersAssignments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeUserAssignment::getRootProgress | ( | ) |
Get the progress on the root node of the programme.
| ilException |
Definition at line 124 of file class.ilStudyProgrammeUserAssignment.php.
References getId(), and getStudyProgramme().
Here is the call graph for this function:| 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 107 of file class.ilStudyProgrammeUserAssignment.php.
References ilObject\_getAllReferences(), and ilObjStudyProgramme\getInstanceByRefId().
Referenced by addMissingProgresses(), deassign(), getRootProgress(), ilPDStudyProgrammeSimpleListGUI\hasPermission(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilPDStudyProgrammeSimpleListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilObjStudyProgramme\removeAssignment(), ilStudyProgrammeEvents\userAssigned(), and ilStudyProgrammeEvents\userDeassigned().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeUserAssignment::getUserId | ( | ) |
Get the id of the user who is assigned.
Definition at line 133 of file class.ilStudyProgrammeUserAssignment.php.
Referenced by ilStudyProgrammeEvents\userAssigned(), and ilStudyProgrammeEvents\userDeassigned().
Here is the caller graph for this function:| ilStudyProgrammeUserAssignment::$assignment |
Definition at line 15 of file class.ilStudyProgrammeUserAssignment.php.