|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Represents one assignment of the user to a program tree. More...
Collaboration diagram for ilStudyProgrammeAssignment:Public Member Functions | |
| __construct (int $id) | |
| getId () | |
| getRootId () | |
| withRootId (int $root_prg_id) | |
| getUserId () | |
| withUserId (int $usr_id) | |
| getLastChangeBy () | |
| getLastChange () | |
| withLastChange (int $last_change_by, DateTimeImmutable $timestamp) | |
| getRestartDate () | |
| getRestartedAssignmentId () | |
| withRestarted (int $restarted_asssignment_id, DateTimeImmutable $restart_date=null) | |
Data Fields | |
| const | NO_RESTARTED_ASSIGNMENT = -1 |
| const | DATE_TIME_FORMAT = 'Y-m-d H:i:s' |
| const | DATE_FORMAT = 'Y-m-d' |
| 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 | |
| $id | |
| $usr_id | |
| $root_prg_id | |
| $last_change | |
| $last_change_by | |
| $restart_date | |
| $restarted_asssignment_id = self::NO_RESTARTED_ASSIGNMENT | |
Represents one assignment of the user to a program tree.
One user can have multiple assignments to the same tree.
Definition at line 13 of file class.ilStudyProgrammeAssignment.php.
| ilStudyProgrammeAssignment::__construct | ( | int | $id | ) |
| ilStudyProgrammeAssignment::getId | ( | ) |
Definition at line 66 of file class.ilStudyProgrammeAssignment.php.
References $id.
Referenced by ilStudyProgrammeProgressDBRepository\getRootProgressOf(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilPDStudyProgrammeSimpleListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilObjStudyProgramme\removeAssignment(), ilStudyProgrammeAssignmentDBRepository\update(), ilStudyProgrammeEvents\userAssigned(), and ilStudyProgrammeEvents\userDeassigned().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getLastChange | ( | ) |
Definition at line 100 of file class.ilStudyProgrammeAssignment.php.
References $last_change.
Referenced by ilObjStudyProgramme\getAssignmentsRaw(), ilStudyProgrammeAssignmentDBRepository\update(), and withLastChange().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getLastChangeBy | ( | ) |
Definition at line 95 of file class.ilStudyProgrammeAssignment.php.
References $last_change_by.
Referenced by ilStudyProgrammeAssignmentDBRepository\update().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getRestartDate | ( | ) |
Definition at line 130 of file class.ilStudyProgrammeAssignment.php.
Referenced by ilStudyProgrammeAssignmentDBRepository\update().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getRestartedAssignmentId | ( | ) |
Definition at line 135 of file class.ilStudyProgrammeAssignment.php.
Referenced by ilStudyProgrammeAssignmentDBRepository\update().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getRootId | ( | ) |
Definition at line 71 of file class.ilStudyProgrammeAssignment.php.
References $root_prg_id.
Referenced by ilObjStudyProgrammeMembersGUI\getAssignmentsById(), ilStudyProgrammeProgressDBRepository\getRootProgressOf(), ilPDStudyProgrammeSimpleListGUI\hasPermission(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilObjStudyProgramme\removeAssignment(), ilStudyProgrammeAssignmentDBRepository\update(), ilStudyProgrammeEvents\userAssigned(), ilStudyProgrammeEvents\userDeassigned(), and ilStudyProgrammeEvents\userReAssigned().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getUserId | ( | ) |
Definition at line 83 of file class.ilStudyProgrammeAssignment.php.
References $usr_id.
Referenced by ilStudyProgrammeProgressDBRepository\getRootProgressOf(), ilObjStudyProgramme\removeAssignment(), ilStudyProgrammeAssignmentDBRepository\update(), ilStudyProgrammeEvents\userAssigned(), ilStudyProgrammeEvents\userDeassigned(), and ilStudyProgrammeEvents\userReAssigned().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::withLastChange | ( | int | $last_change_by, |
| DateTimeImmutable | $timestamp | ||
| ) |
| ilException | if new date is earlier than the existing one |
Definition at line 111 of file class.ilStudyProgrammeAssignment.php.
References getLastChange().
Here is the call graph for this function:| ilStudyProgrammeAssignment::withRestarted | ( | int | $restarted_asssignment_id, |
| DateTimeImmutable | $restart_date = null |
||
| ) |
Definition at line 140 of file class.ilStudyProgrammeAssignment.php.
| ilStudyProgrammeAssignment::withRootId | ( | int | $root_prg_id | ) |
Definition at line 76 of file class.ilStudyProgrammeAssignment.php.
References $root_prg_id.
Referenced by ilStudyProgrammeAssignmentDBRepository\assignmentByRow().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::withUserId | ( | int | $usr_id | ) |
Definition at line 88 of file class.ilStudyProgrammeAssignment.php.
References $usr_id.
|
protected |
Definition at line 28 of file class.ilStudyProgrammeAssignment.php.
Referenced by __construct(), and getId().
|
protected |
Definition at line 43 of file class.ilStudyProgrammeAssignment.php.
Referenced by getLastChange().
|
protected |
Definition at line 48 of file class.ilStudyProgrammeAssignment.php.
Referenced by getLastChangeBy().
|
protected |
Definition at line 53 of file class.ilStudyProgrammeAssignment.php.
|
protected |
Definition at line 58 of file class.ilStudyProgrammeAssignment.php.
|
protected |
Definition at line 38 of file class.ilStudyProgrammeAssignment.php.
Referenced by getRootId(), and withRootId().
|
protected |
Definition at line 33 of file class.ilStudyProgrammeAssignment.php.
Referenced by getUserId(), and withUserId().
| const ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_COURSE = -3 |
Definition at line 22 of file class.ilStudyProgrammeAssignment.php.
| const ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_GROUP = -4 |
Definition at line 23 of file class.ilStudyProgrammeAssignment.php.
| const ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_ORGU = -2 |
Definition at line 21 of file class.ilStudyProgrammeAssignment.php.
| const ilStudyProgrammeAssignment::AUTO_ASSIGNED_BY_ROLE = -1 |
Definition at line 20 of file class.ilStudyProgrammeAssignment.php.
| const ilStudyProgrammeAssignment::DATE_FORMAT = 'Y-m-d' |
Definition at line 18 of file class.ilStudyProgrammeAssignment.php.
Referenced by ilStudyProgrammeAssignmentDBRepository\getDueToRestartBaseSQL(), and ilStudyProgrammeAssignmentDBRepository\loadDueToManuelRestart().
| const ilStudyProgrammeAssignment::DATE_TIME_FORMAT = 'Y-m-d H:i:s' |
Definition at line 17 of file class.ilStudyProgrammeAssignment.php.
Referenced by ilStudyProgrammeAssignmentDBRepository\assignmentByRow(), and ilStudyProgrammeAssignmentDBRepository\update().
| const ilStudyProgrammeAssignment::NO_RESTARTED_ASSIGNMENT = -1 |
Definition at line 15 of file class.ilStudyProgrammeAssignment.php.
Referenced by ilStudyProgrammeAssignmentDBRepository\createFor(), ilStudyProgrammeAssignmentDBRepository\getDueToRestartBaseSQL(), ilStudyProgrammeAssignmentDBRepository\loadDueToManuelRestart(), ilStudyProgrammeAssignmentRepositoryTest\test_create(), and ilStudyProgrammeUserAssignmentTest\testRstartAssignment().