ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Exercise assignment team. More...
Public Member Functions | |
__construct ($a_id=null) | |
getId () | |
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... | |
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 | |
$id | |
$assignment_id | |
$members = array() | |
Exercise assignment team.
Definition at line 10 of file class.ilExAssignmentTeam.php.
ilExAssignmentTeam::__construct | ( | $a_id = null | ) |
Definition at line 22 of file class.ilExAssignmentTeam.php.
References read().
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 160 of file class.ilExAssignmentTeam.php.
References $ilDB, ilObjUser\_lookupFullname(), array, getMembersOfAllTeams(), read(), sendNotification(), and writeLog().
|
static |
Definition at line 426 of file class.ilExAssignmentTeam.php.
References array, and getId().
Referenced by ilExAssignmentEditorGUI\adoptTeamAssignmentsObject(), and ilExSubmissionTeamGUI\createAdoptedTeamObject().
|
protected |
|
static |
Definition at line 492 of file class.ilExAssignmentTeam.php.
Referenced by ilExerciseManagementGUI\membersObject().
|
static |
Definition at line 368 of file class.ilExAssignmentTeam.php.
References $data, $res, $row, array, ilExAssignment\getAssignmentDataOfExercise(), ilUtil\sortArray(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by ilExAssignmentEditorGUI\adoptTeamAssignmentsFormObject(), ilExSubmissionTeamGUI\createTeamObject(), and ilExAssignmentEditorGUI\saveAssignmentObject().
|
static |
Get team structure for assignment.
int | $a_ass_id |
Definition at line 231 of file class.ilExAssignmentTeam.php.
References $ilDB, $row, and array.
Referenced by ilExSubmissionTeamGUI\createTeamObject(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExSubmission\downloadAllAssignmentFiles(), ilExParticipantTableGUI\parseData(), and ilExerciseMemberTableGUI\parseData().
|
static |
Definition at line 510 of file class.ilExAssignmentTeam.php.
References $res, ilObject\_lookupTitle(), array, and ilUtil\sortArray().
Referenced by ilExerciseManagementGUI\createTeamsFromGroupsObject(), and ilExerciseManagementGUI\initGroupForm().
ilExAssignmentTeam::getId | ( | ) |
Definition at line 57 of file class.ilExAssignmentTeam.php.
References $id.
Referenced by adoptTeams().
|
static |
Definition at line 30 of file class.ilExAssignmentTeam.php.
References $id.
Referenced by ilExSubmission\__construct(), ilExerciseManagementGUI\createTeamsFromGroupsObject(), ilExerciseManagementGUI\createTeamsObject(), and ilExerciseManagementGUI\dissolveTeamsObject().
|
static |
Definition at line 36 of file class.ilExAssignmentTeam.php.
References $members, $res, and array.
Referenced by ilExerciseManagementGUI\initIndividualDeadlineForm(), and ilExerciseMemberTableGUI\parseData().
ilExAssignmentTeam::getLog | ( | ) |
Get all log entries for team.
int | $a_team_id |
Definition at line 283 of file class.ilExAssignmentTeam.php.
References $ilDB, $res, $row, array, and cleanLog().
ilExAssignmentTeam::getMembers | ( | ) |
Get members of assignment team.
Definition at line 126 of file class.ilExAssignmentTeam.php.
References $members.
ilExAssignmentTeam::getMembersOfAllTeams | ( | ) |
Get members for all teams of assignment.
Definition at line 136 of file class.ilExAssignmentTeam.php.
References $ilDB, $row, and array.
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 93 of file class.ilExAssignmentTeam.php.
References $id, $ilDB, $row, ilObjUser\_lookupFullname(), and array.
Referenced by ilExSubmissionTeamGUI\createAdoptedTeamObject(), ilExSubmissionTeamGUI\createSingleMemberTeamObject(), ilExSubmissionTeamGUI\createTeamObject(), ilExAssignment\getPersonalDeadline(), and ilExerciseSubmissionTableGUI\parseRow().
|
protected |
Definition at line 62 of file class.ilExAssignmentTeam.php.
References $ilDB, $row, and array.
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 199 of file class.ilExAssignmentTeam.php.
References $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 341 of file class.ilExAssignmentTeam.php.
References $ilUser, and array.
Referenced by addTeamMember(), and removeTeamMember().
ilExAssignmentTeam::writeLog | ( | $a_action, | |
$a_details = null |
|||
) |
Definition at line 248 of file class.ilExAssignmentTeam.php.
Referenced by addTeamMember(), and removeTeamMember().
|
static |
Add entry to team log.
int | $a_team_id | |
int | $a_action | |
string | $a_details |
Definition at line 260 of file class.ilExAssignmentTeam.php.
References $id, $ilDB, $ilUser, array, and time.
|
protected |
Definition at line 13 of file class.ilExAssignmentTeam.php.
|
protected |
Definition at line 12 of file class.ilExAssignmentTeam.php.
Referenced by getId(), getInstanceByUserId(), getTeamId(), and writeTeamLog().
|
protected |
Definition at line 14 of file class.ilExAssignmentTeam.php.
Referenced by getInstancesFromMap(), and getMembers().
const ilExAssignmentTeam::TEAM_LOG_ADD_FILE = 4 |
Definition at line 19 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems(), and ilExSubmission\uploadFile().
const ilExAssignmentTeam::TEAM_LOG_ADD_MEMBER = 2 |
Definition at line 17 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignmentTeam::TEAM_LOG_CREATE_TEAM = 1 |
Definition at line 16 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignmentTeam::TEAM_LOG_REMOVE_FILE = 5 |
Definition at line 20 of file class.ilExAssignmentTeam.php.
Referenced by ilExSubmission\deleteSelectedFiles(), and ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignmentTeam::TEAM_LOG_REMOVE_MEMBER = 3 |
Definition at line 18 of file class.ilExAssignmentTeam.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().