|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilExAssignmentTeam:Public Member Functions | |
| __construct (?int $a_id=null) | |
| getId () | |
| createTeam (int $a_assignment_id, int $a_user_id) | |
| getMembers () | |
| getMembersOfAllTeams () | |
| Get members for all teams of assignment. More... | |
| addTeamMember (int $a_user_id, ?int $a_exc_ref_id=null) | |
| removeTeamMember (int $a_user_id, ?int $a_exc_ref_id=null) | |
| writeLog (string $a_action, string $a_details=null) | |
| getLog () | |
| sendNotification (int $a_exc_ref_id, int $a_user_id, string $a_action) | |
| Send notification about team status. More... | |
| createRandomTeams (int $a_exercise_id, int $a_assignment_id, int $a_number_teams, int $a_min_participants) | |
| Create random teams for assignment type "team upload" following specific rules. More... | |
Static Public Member Functions | |
| static | getInstanceByUserId (int $a_assignment_id, int $a_user_id, bool $a_create_on_demand=false) |
| static | getInstancesFromMap (int $a_assignment_id) |
| static | getTeamId (int $a_assignment_id, int $a_user_id, bool $a_create_on_demand=false) |
| static | getAssignmentTeamMap (int $a_ass_id) |
| static | writeTeamLog (int $a_team_id, string $a_action, string $a_details=null) |
| Add entry to team log. More... | |
| static | getAdoptableTeamAssignments (int $a_exercise_id, int $a_exclude_ass_id=null, int $a_user_id=null) |
| static | adoptTeams (int $a_source_ass_id, int $a_target_ass_id, int $a_user_id=null, int $a_exc_ref_id=null) |
| static | getAdoptableGroups (int $a_exc_ref_id) |
| static | getGroupMembersMap (int $a_exc_ref_id) |
Data Fields | |
| const | TEAM_LOG_CREATE_TEAM = 1 |
| const | TEAM_LOG_ADD_MEMBER = 2 |
| const | TEAM_LOG_REMOVE_MEMBER = 3 |
| const | TEAM_LOG_ADD_FILE = 4 |
| const | TEAM_LOG_REMOVE_FILE = 5 |
Protected Member Functions | |
| read (int $a_id) | |
| cleanLog () | |
| Remove obsolete log entries. More... | |
Protected Attributes | |
| ILIAS Exercise Team TeamManager | $team_manager |
| ILIAS Exercise Team TeamDBRepository | $repo |
| ilDBInterface | $db |
| ilObjUser | $user |
| int | $id = null |
| int | $assignment_id |
| array | $members = array() |
Private Member Functions | |
| setId (?int $a_id) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Exercise assignment team
Definition at line 25 of file class.ilExAssignmentTeam.php.
| ilExAssignmentTeam::__construct | ( | ?int | $a_id = null | ) |
Definition at line 41 of file class.ilExAssignmentTeam.php.
References $DIC, read(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilExAssignmentTeam::addTeamMember | ( | int | $a_user_id, |
| ?int | $a_exc_ref_id = null |
||
| ) |
| ilExcUnknownAssignmentTypeException |
Definition at line 187 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, ilObjUser\_lookupFullname(), getMembersOfAllTeams(), read(), sendNotification(), and writeLog().
Referenced by createRandomTeams().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| ilExcUnknownAssignmentTypeException |
Definition at line 437 of file class.ilExAssignmentTeam.php.
References getId(), and ilExcIndividualDeadline\getInstance().
Referenced by ilExSubmissionTeamGUI\createAdoptedTeamObject(), and ilExAssignmentEditorGUI\generateTeams().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Remove obsolete log entries.
As there is no proper team deletion event, we are doing it this way
Definition at line 332 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, and $q.
Referenced by getLog().
Here is the caller graph for this function:| ilExAssignmentTeam::createRandomTeams | ( | int | $a_exercise_id, |
| int | $a_assignment_id, | ||
| int | $a_number_teams, | ||
| int | $a_min_participants | ||
| ) |
Create random teams for assignment type "team upload" following specific rules.
example:
| ilExcUnknownAssignmentTypeException | |
| Exception |
Definition at line 555 of file class.ilExAssignmentTeam.php.
References $exercise, addTeamMember(), createTeam(), and setId().
Here is the call graph for this function:| ilExAssignmentTeam::createTeam | ( | int | $a_assignment_id, |
| int | $a_user_id | ||
| ) |
Definition at line 146 of file class.ilExAssignmentTeam.php.
References $id, and ilObjUser\_lookupFullname().
Referenced by createRandomTeams().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int | $a_exc_ref_id |
Definition at line 510 of file class.ilExAssignmentTeam.php.
Referenced by ilExerciseManagementGUI\membersObject().
Here is the caller graph for this function:
|
static |
Definition at line 383 of file class.ilExAssignmentTeam.php.
References $data, $res, ilExAssignment\getAssignmentDataOfExercise(), ilArrayUtil\sortArray(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExSubmissionTeamGUI\createTeamObject(), ilExSubmissionTeamGUI\getAdoptForm(), and ilExAssignmentEditorGUI\initAssignmentForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 267 of file class.ilExAssignmentTeam.php.
References $DIC.
Referenced by ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExSubmission\downloadAllAssignmentFiles(), ilExAssignmentEditorGUI\generateTeams(), ilExSubmissionTeamGUI\getAdoptForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilAssignmentsPerParticipantTableGUI\parseData(), and ilParticipantsPerAssignmentTableGUI\parseData().
Here is the caller graph for this function:
|
static |
Definition at line 528 of file class.ilExAssignmentTeam.php.
References $res, ilObject\_lookupTitle(), and ilArrayUtil\sortArray().
Referenced by ilExerciseManagementGUI\createTeamsFromGroupsObject(), and ilExerciseManagementGUI\initGroupForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentTeam::getId | ( | ) |
Definition at line 81 of file class.ilExAssignmentTeam.php.
References $id.
Referenced by adoptTeams().
Here is the caller graph for this function:
|
static |
Definition at line 53 of file class.ilExAssignmentTeam.php.
References $id.
Referenced by ilExSubmission\__construct(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExerciseManagementGUI\createTeamsObject(), ilExerciseManagementGUI\dissolveTeamsObject(), ilExcRepoObjAssignmentInfo\getInfo(), and ilExcAssMemberState\getInstanceByIds().
Here is the caller graph for this function:
|
static |
Definition at line 62 of file class.ilExAssignmentTeam.php.
References $members, and $res.
Referenced by ilExerciseManagementGUI\initIndividualDeadlineForm(), and ilParticipantsPerAssignmentTableGUI\parseData().
Here is the caller graph for this function:| ilExAssignmentTeam::getLog | ( | ) |
Definition at line 309 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, $res, and cleanLog().
Here is the call graph for this function:| ilExAssignmentTeam::getMembers | ( | ) |
| ilExAssignmentTeam::getMembersOfAllTeams | ( | ) |
Get members for all teams of assignment.
Definition at line 175 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember().
Here is the caller graph for this function:
|
static |
Definition at line 105 of file class.ilExAssignmentTeam.php.
References $DIC, $id, $ilDB, ilObjUser\_lookupFullname(), and ilExcIndividualDeadline\getInstance().
Referenced by ilExAssignment\canParticipantReceiveFeedback(), ilExSubmissionTeamGUI\createAdoptedTeamObject(), ilExSubmissionTeamGUI\createSingleMemberTeamObject(), ilExSubmissionTeamGUI\createTeamObject(), ilExAssignment\getPersonalDeadline(), and ilExerciseSubmissionTableGUI\parseColumns().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 91 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, and setId().
Referenced by __construct(), addTeamMember(), and removeTeamMember().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentTeam::removeTeamMember | ( | int | $a_user_id, |
| ?int | $a_exc_ref_id = null |
||
| ) |
| ilExcUnknownAssignmentTypeException |
Definition at line 238 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, ilObjUser\_lookupFullname(), read(), sendNotification(), and writeLog().
Referenced by ilExSubmission\deleteUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExAssignmentTeam::sendNotification | ( | int | $a_exc_ref_id, |
| int | $a_user_id, | ||
| string | $a_action | ||
| ) |
Send notification about team status.
| ilExcUnknownAssignmentTypeException |
Definition at line 356 of file class.ilExAssignmentTeam.php.
References $user.
Referenced by addTeamMember(), and removeTeamMember().
Here is the caller graph for this function:
|
private |
Definition at line 86 of file class.ilExAssignmentTeam.php.
Referenced by createRandomTeams(), and read().
Here is the caller graph for this function:| ilExAssignmentTeam::writeLog | ( | string | $a_action, |
| string | $a_details = null |
||
| ) |
Definition at line 275 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember(), and removeTeamMember().
Here is the caller graph for this function:
|
static |
|
protected |
Definition at line 38 of file class.ilExAssignmentTeam.php.
|
protected |
Definition at line 35 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember(), cleanLog(), getLog(), read(), and removeTeamMember().
|
protected |
Definition at line 37 of file class.ilExAssignmentTeam.php.
Referenced by createTeam(), getId(), getInstanceByUserId(), and getTeamId().
|
protected |
Definition at line 39 of file class.ilExAssignmentTeam.php.
Referenced by getInstancesFromMap(), and getMembers().
|
protected |
Definition at line 33 of file class.ilExAssignmentTeam.php.
|
protected |
Definition at line 32 of file class.ilExAssignmentTeam.php.
|
protected |
Definition at line 36 of file class.ilExAssignmentTeam.php.
Referenced by sendNotification().
| const ilExAssignmentTeam::TEAM_LOG_ADD_FILE = 4 |
Definition at line 30 of file class.ilExAssignmentTeam.php.
Referenced by ilExSubmission\addFileUpload(), ilExAssignmentTeamLogTableGUI\getItems(), and ilExSubmission\uploadFile().
| const ilExAssignmentTeam::TEAM_LOG_ADD_MEMBER = 2 |
Definition at line 28 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
| const ilExAssignmentTeam::TEAM_LOG_CREATE_TEAM = 1 |
Definition at line 27 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
| const ilExAssignmentTeam::TEAM_LOG_REMOVE_FILE = 5 |
Definition at line 31 of file class.ilExAssignmentTeam.php.
Referenced by ilExSubmission\deleteSelectedFiles(), and ilExAssignmentTeamLogTableGUI\getItems().
| const ilExAssignmentTeam::TEAM_LOG_REMOVE_MEMBER = 3 |
Definition at line 29 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().