ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 (int $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, int $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().
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().
|
static |
ilExcUnknownAssignmentTypeException |
Definition at line 437 of file class.ilExAssignmentTeam.php.
References $user_id, getId(), ilExcIndividualDeadline\getInstance(), and null.
Referenced by ilExSubmissionTeamGUI\createAdoptedTeamObject(), and ilExAssignmentEditorGUI\generateTeams().
|
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().
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().
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().
|
static |
int | $a_exc_ref_id |
Definition at line 510 of file class.ilExAssignmentTeam.php.
Referenced by ilExerciseManagementGUI\membersObject().
|
static |
Definition at line 383 of file class.ilExAssignmentTeam.php.
References $data, $res, $user_id, ilExAssignment\getAssignmentDataOfExercise(), null, ilArrayUtil\sortArray(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExSubmissionTeamGUI\createTeamObject(), ilExSubmissionTeamGUI\getAdoptForm(), and ilExAssignmentEditorGUI\initAssignmentForm().
|
static |
Definition at line 267 of file class.ilExAssignmentTeam.php.
References $DIC.
Referenced by ILIAS\Exercise\Submission\SubmissionManager\copySubmissionsToDir(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExAssignmentEditorGUI\generateTeams(), ilExSubmissionTeamGUI\getAdoptForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilAssignmentsPerParticipantTableGUI\parseData(), and ilParticipantsPerAssignmentTableGUI\parseData().
|
static |
Definition at line 528 of file class.ilExAssignmentTeam.php.
References $res, ilObject\_lookupTitle(), and ilArrayUtil\sortArray().
Referenced by ilExerciseManagementGUI\createTeamsFromGroupsObject(), and ilExerciseManagementGUI\initGroupForm().
ilExAssignmentTeam::getId | ( | ) |
Definition at line 81 of file class.ilExAssignmentTeam.php.
References $id.
Referenced by adoptTeams().
|
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().
|
static |
Definition at line 62 of file class.ilExAssignmentTeam.php.
References $members, $res, and $user_id.
Referenced by ilExerciseManagementGUI\initIndividualDeadlineForm(), and ilParticipantsPerAssignmentTableGUI\parseData().
ilExAssignmentTeam::getLog | ( | ) |
Definition at line 309 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, $res, and cleanLog().
ilExAssignmentTeam::getMembers | ( | ) |
ilExAssignmentTeam::getMembersOfAllTeams | ( | ) |
Get members for all teams of assignment.
Definition at line 175 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember().
|
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().
|
protected |
Definition at line 91 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, and setId().
Referenced by __construct(), addTeamMember(), and removeTeamMember().
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().
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().
|
private |
Definition at line 86 of file class.ilExAssignmentTeam.php.
Referenced by createRandomTeams(), and read().
ilExAssignmentTeam::writeLog | ( | int | $a_action, |
?string | $a_details = null |
||
) |
Definition at line 275 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember(), and removeTeamMember().
|
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 |
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 ILIAS\Exercise\Submission\SubmissionManager\deleteSubmissions(), and ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignmentTeam::TEAM_LOG_REMOVE_MEMBER = 3 |
Definition at line 29 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().