4 include_once(
"./Modules/Exercise/classes/class.ilExerciseSubmissionTableGUI.php");
22 $this->mode = self::MODE_BY_USER;
25 $this->
setId(
"exc_part");
29 if (trim(
$name[
"login"])) {
33 $name[
"lastname"] .
", " .
$name[
"firstname"] .
" [" .
$name[
"login"] .
"]");
55 if (!$ilAccess->checkAccessOfUser($this->user->getId(),
"read",
"", $this->exc->getRefId()) &&
56 is_array(
$info = $ilAccess->getInfo())) {
64 $member_status = $ass->getMemberStatus($this->
user->getId());
67 if ($this->filter[
"status"] &&
68 $member_status->getStatus() != $this->filter[
"status"]) {
73 $idl = $ass->getIndividualDeadlines();
75 if ($this->filter[
"subm"]) {
76 if ($this->filter[
"subm"] ==
"y" &&
77 !$submission->getLastSubmission()) {
79 } elseif ($this->filter[
"subm"] ==
"n" &&
80 $submission->getLastSubmission()) {
87 "submission_obj" => $submission,
88 "name" => $ass->getTitle(),
89 "status" => $member_status->getStatus(),
90 "mark" => $member_status->getMark(),
91 "sent_time" => $member_status->getSentTime(),
92 "status_time" => $member_status->getStatusTime(),
93 "feedback_time" => $member_status->getFeedbackTime(),
94 "submission" => $submission->getLastSubmission(),
95 "notice" => $member_status->getNotice(),
96 "comment" => $member_status->getComment(),
97 "order_nr" => $ass->getOrderNr()
100 if ($ass->hasTeam()) {
104 foreach ($submission->getTeam()->getMembers() as $user_id) {
109 $team_id = $team_map[$this->
user->getId()];
110 if (is_numeric($team_id)) {
111 $idl_team_id =
"t" . $team_id;
112 if (array_key_exists($idl_team_id, $idl)) {
113 $row[
"idl"] = $idl[$idl_team_id];
117 if (array_key_exists($this->
user->getId(), $idl)) {
118 $row[
"idl"] = $idl[$this->
user->getId()];
132 $cols[
"name"] =
array($this->lng->txt(
"exc_assignment"),
"order_nr");
133 $cols[
"team_members"] =
array($this->lng->txt(
"exc_tbl_team"));
134 $cols[
"idl"] =
array($this->lng->txt(
"exc_tbl_individual_deadline"),
"idl");
142 $ilCtrl->setParameter($this->parent_obj,
"member_id", $this->
user->getId());
143 $ilCtrl->setParameter($this->parent_obj,
"ass_id", $a_item[
"ass"]->
getId());
146 $this->tpl->setVariable(
"NAME_ID",
"ass");
147 $this->tpl->setVariable(
"VAL_ID", $a_item[
"ass"]->
getId());
149 $this->
parseRow($this->
user->getId(), $a_item[
"ass"], $a_item);
151 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
"");
152 $ilCtrl->setParameter($this->parent_obj,
"member_id", $this->
user->getId());
160 if (in_array($a_field, [
"order_nr"])) {
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static _lookupName($a_user_id)
lookup user name
setDescription($a_val)
Set description.
static getAssignmentTeamMap($a_ass_id)
Get team structure for assignment.
numericOrdering($a_field)
static _lookupFullname($a_user_id)
Lookup Full Name.
Exercise participant table.
getParentCmd()
Get parent command.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getInstancesByExercise($a_exc_id)
Exercise submission table.
parseRow($a_user_id, ilExAssignment $a_ass, array $a_row)
Create styles array
The data for the language used.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.