ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Exercise assignment team. More...
Public Member Functions | |
__construct ($a_id=null) | |
getId () | |
createTeam ($a_assignment_id, $a_user_id) | |
getMembers () | |
Get members of assignment team. More... | |
getMembersOfAllTeams () | |
Get members for all teams of assignment. More... | |
addTeamMember ($a_user_id, $a_exc_ref_id=null) | |
Add new member to team. More... | |
removeTeamMember ($a_user_id, $a_exc_ref_id=null) | |
Remove member from team. More... | |
writeLog ($a_action, $a_details=null) | |
getLog () | |
Get all log entries for team. More... | |
sendNotification ($a_exc_ref_id, $a_user_id, $a_action) | |
Send notification about team status. More... | |
createRandomTeams ($a_exercise_id, $a_assignment_id, $a_number_teams, $a_min_participants) | |
Create random teams for assignment type "team upload" following specific rules. More... | |
Static Public Member Functions | |
static | getInstanceByUserId ($a_assignment_id, $a_user_id, $a_create_on_demand=false) |
static | getInstancesFromMap ($a_assignment_id) |
static | getTeamId ($a_assignment_id, $a_user_id, $a_create_on_demand=false) |
Get team id for member id. More... | |
static | getAssignmentTeamMap ($a_ass_id) |
Get team structure for assignment. More... | |
static | writeTeamLog ($a_team_id, $a_action, $a_details=null) |
Add entry to team log. More... | |
static | getAdoptableTeamAssignments ($a_exercise_id, $a_exclude_ass_id=null, $a_user_id=null) |
static | adoptTeams ($a_source_ass_id, $a_target_ass_id, $a_user_id=null, $a_exc_ref_id=null) |
static | getAdoptableGroups ($a_exc_ref_id) |
static | getGroupMembersMap ($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 ($a_id) | |
cleanLog () | |
Remove obsolete log entries. More... | |
Protected Attributes | |
$db | |
$user | |
$id | |
$assignment_id | |
$members = array() | |
Private Member Functions | |
setId ($a_id) | |
Exercise assignment team.
Definition at line 10 of file class.ilExAssignmentTeam.php.
ilExAssignmentTeam::__construct | ( | $a_id = null | ) |
Definition at line 32 of file class.ilExAssignmentTeam.php.
References $DIC, read(), and user().
ilExAssignmentTeam::addTeamMember | ( | $a_user_id, | |
$a_exc_ref_id = null |
|||
) |
Add new member to team.
int | $a_user_id | |
int | $a_exc_ref_id |
Definition at line 205 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, ilObjUser\_lookupFullname(), getMembersOfAllTeams(), read(), sendNotification(), and writeLog().
Referenced by createRandomTeams().
|
static |
Definition at line 459 of file class.ilExAssignmentTeam.php.
References getId(), and ilExcIndividualDeadline\getInstance().
Referenced by ilExSubmissionTeamGUI\createAdoptedTeamObject(), and ilExAssignmentEditorGUI\generateTeams().
|
protected |
ilExAssignmentTeam::createRandomTeams | ( | $a_exercise_id, | |
$a_assignment_id, | |||
$a_number_teams, | |||
$a_min_participants | |||
) |
Create random teams for assignment type "team upload" following specific rules.
example:
$a_exercise_id | integer |
$a_assignment_id | integer |
$a_number_teams | integer |
$a_min_participants | integer |
Definition at line 573 of file class.ilExAssignmentTeam.php.
References $exercise, $i, $members, addTeamMember(), createTeam(), and setId().
ilExAssignmentTeam::createTeam | ( | $a_assignment_id, | |
$a_user_id | |||
) |
Definition at line 150 of file class.ilExAssignmentTeam.php.
References $db, $id, $ilDB, and ilObjUser\_lookupFullname().
Referenced by createRandomTeams().
|
static |
Definition at line 524 of file class.ilExAssignmentTeam.php.
References $DIC, $res, and $tree.
Referenced by ilExerciseManagementGUI\membersObject().
|
static |
Definition at line 411 of file class.ilExAssignmentTeam.php.
References $data, $map, $res, $row, ilExAssignment\getAssignmentDataOfExercise(), ilUtil\sortArray(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExSubmissionTeamGUI\createTeamObject(), and ilExAssignmentEditorGUI\initAssignmentForm().
|
static |
Get team structure for assignment.
int | $a_ass_id |
Definition at line 275 of file class.ilExAssignmentTeam.php.
References $DIC, $ilDB, $map, and $row.
Referenced by ilExSubmissionTeamGUI\createTeamObject(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExSubmission\downloadAllAssignmentFiles(), ilExAssignmentEditorGUI\generateTeams(), ilExAssignmentEditorGUI\initAssignmentForm(), ilExParticipantTableGUI\initMode(), and ilExerciseMemberTableGUI\parseData().
|
static |
Definition at line 542 of file class.ilExAssignmentTeam.php.
References $res, ilObject\_lookupTitle(), and ilUtil\sortArray().
Referenced by ilExerciseManagementGUI\createTeamsFromGroupsObject(), and ilExerciseManagementGUI\initGroupForm().
ilExAssignmentTeam::getId | ( | ) |
Definition at line 68 of file class.ilExAssignmentTeam.php.
References $id.
Referenced by adoptTeams().
|
static |
Definition at line 43 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 49 of file class.ilExAssignmentTeam.php.
References $members, and $res.
Referenced by ilExerciseManagementGUI\initIndividualDeadlineForm(), and ilExerciseMemberTableGUI\parseData().
ilExAssignmentTeam::getLog | ( | ) |
Get all log entries for team.
int | $a_team_id |
Definition at line 331 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, $res, $row, and cleanLog().
ilExAssignmentTeam::getMembers | ( | ) |
Get members of assignment team.
Definition at line 172 of file class.ilExAssignmentTeam.php.
References $members.
ilExAssignmentTeam::getMembersOfAllTeams | ( | ) |
Get members for all teams of assignment.
Definition at line 182 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, and $row.
Referenced by addTeamMember().
|
static |
Get team id for member id.
team will be created if no team yet
int | $a_user_id | |
bool | $a_create_on_demand |
Definition at line 107 of file class.ilExAssignmentTeam.php.
References $DIC, $id, $ilDB, $row, ilObjUser\_lookupFullname(), and ilExcIndividualDeadline\getInstance().
Referenced by ilExSubmissionTeamGUI\createAdoptedTeamObject(), ilExSubmissionTeamGUI\createSingleMemberTeamObject(), ilExSubmissionTeamGUI\createTeamObject(), ilExAssignment\getPersonalDeadline(), and ilExerciseSubmissionTableGUI\parseRow().
|
protected |
Definition at line 78 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, $row, and setId().
Referenced by __construct(), addTeamMember(), and removeTeamMember().
ilExAssignmentTeam::removeTeamMember | ( | $a_user_id, | |
$a_exc_ref_id = null |
|||
) |
Remove member from team.
int | $a_user_id | |
int | $a_exc_ref_id |
Definition at line 243 of file class.ilExAssignmentTeam.php.
References $db, $ilDB, ilObjUser\_lookupFullname(), read(), sendNotification(), and writeLog().
ilExAssignmentTeam::sendNotification | ( | $a_exc_ref_id, | |
$a_user_id, | |||
$a_action | |||
) |
Send notification about team status.
int | $a_exc_ref_id | |
int | $a_user_id | |
string | $a_action |
Definition at line 385 of file class.ilExAssignmentTeam.php.
References $ilUser, and $user.
Referenced by addTeamMember(), and removeTeamMember().
|
private |
Definition at line 73 of file class.ilExAssignmentTeam.php.
Referenced by createRandomTeams(), and read().
ilExAssignmentTeam::writeLog | ( | $a_action, | |
$a_details = null |
|||
) |
Definition at line 293 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember(), and removeTeamMember().
|
static |
|
protected |
Definition at line 23 of file class.ilExAssignmentTeam.php.
|
protected |
Definition at line 15 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember(), cleanLog(), createTeam(), getLog(), getMembersOfAllTeams(), read(), and removeTeamMember().
|
protected |
Definition at line 22 of file class.ilExAssignmentTeam.php.
Referenced by createTeam(), getId(), getInstanceByUserId(), getTeamId(), and writeTeamLog().
|
protected |
Definition at line 24 of file class.ilExAssignmentTeam.php.
Referenced by createRandomTeams(), getInstancesFromMap(), and getMembers().
|
protected |
Definition at line 20 of file class.ilExAssignmentTeam.php.
Referenced by sendNotification().
const ilExAssignmentTeam::TEAM_LOG_ADD_FILE = 4 |
Definition at line 29 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems(), and ilExSubmission\uploadFile().
const ilExAssignmentTeam::TEAM_LOG_ADD_MEMBER = 2 |
Definition at line 27 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignmentTeam::TEAM_LOG_CREATE_TEAM = 1 |
Definition at line 26 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignmentTeam::TEAM_LOG_REMOVE_FILE = 5 |
Definition at line 30 of file class.ilExAssignmentTeam.php.
Referenced by ilExSubmission\deleteSelectedFiles(), and ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignmentTeam::TEAM_LOG_REMOVE_MEMBER = 3 |
Definition at line 28 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().