28 protected function initMode(
int $a_item_id): void
32 $this->mode = self::MODE_BY_USER;
35 $this->
setId(
"exc_part");
39 if (trim(
$name[
"login"]) !==
'' && trim(
$name[
"login"]) !==
'0') {
43 $lng->
txt(
"exc_participant") .
": " .
44 $name[
"lastname"] .
", " .
$name[
"firstname"] .
" [" .
$name[
"login"] .
"]" 69 if (!$ilAccess->checkAccessOfUser($this->user->getId(),
"read",
"", $this->exc->getRefId()) &&
70 is_array($info = $ilAccess->getInfo())) {
71 $this->
setDescription(
'<span class="warning">' . $info[0][
'text'] .
'</span>');
77 $member_status = $ass->getMemberStatus($this->
user->getId());
80 if ($this->
filter[
"status"] &&
81 $member_status->getStatus() != $this->
filter[
"status"]) {
86 $idl = $ass->getIndividualDeadlines();
88 if ($this->
filter[
"subm"]) {
89 if ($this->
filter[
"subm"] ==
"y" &&
90 !$submission->getLastSubmission()) {
92 } elseif ($this->
filter[
"subm"] ==
"n" &&
93 $submission->getLastSubmission()) {
100 "submission_obj" => $submission,
101 "name" => $ass->getTitle(),
102 "status" => $member_status->getStatus(),
103 "mark" => $member_status->getMark(),
104 "sent_time" => $member_status->getSentTime(),
105 "status_time" => $member_status->getStatusTime(),
106 "feedback_time" => $member_status->getFeedbackTime(),
107 "submission" => $submission->getLastSubmission(),
108 "notice" => $member_status->getNotice(),
109 "comment" => $member_status->getComment(),
110 "order_nr" => $ass->getOrderNr()
113 if ($ass->hasTeam()) {
116 $row[
"team"] = array();
117 foreach ($submission->getTeam()->getMembers() as $user_id) {
122 $team_id = $team_map[$this->
user->getId()] ?? null;
123 if (is_numeric($team_id)) {
124 $idl_team_id =
"t" . $team_id;
125 if (array_key_exists($idl_team_id, $idl)) {
126 $row[
"idl"] = $idl[$idl_team_id];
130 if (array_key_exists($this->
user->getId(), $idl)) {
131 $row[
"idl"] = $idl[$this->
user->getId()];
145 $cols[
"name"] = array($this->
lng->txt(
"exc_assignment"),
"order_nr");
146 $cols[
"team_members"] = array($this->
lng->txt(
"exc_tbl_team"));
147 $cols[
"idl"] = array($this->
lng->txt(
"exc_tbl_individual_deadline"),
"idl");
157 protected function fillRow(array $a_set): void
160 $ilCtrl->
setParameter($this->parent_obj,
"member_id", $this->
user->getId());
161 $ilCtrl->setParameter($this->parent_obj,
"ass_id", $a_set[
"ass"]->
getId());
164 $this->tpl->setVariable(
"NAME_ID",
"sel_ass_ids");
165 $this->tpl->setVariable(
"LISTED_NAME_ID",
"listed_ass_ids");
166 $this->tpl->setVariable(
"VAL_ID", $a_set[
"ass"]->
getId());
168 $this->parseRow($this->
user->getId(), $a_set[
"ass"], $a_set);
170 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
"");
171 $ilCtrl->setParameter($this->parent_obj,
"member_id", $this->
user->getId());
176 return $a_field ===
"order_nr";
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupFullname(int $a_user_id)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setDescription(string $a_val)
static _lookupName(int $a_user_id)
lookup user name
Exercise submission table.
static getAssignmentTeamMap(int $a_ass_id)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
static getInstancesByExercise(int $a_exc_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
numericOrdering(string $a_field)