ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFeedbackConfirmationTable2GUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected \ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackZipManager $feedback_zip;
28 protected ilObjUser $user;
30
34 public function __construct(
35 object $a_parent_obj,
36 string $a_parent_cmd,
37 ilExAssignment $a_ass
38 ) {
39 global $DIC;
40
41 $domain = $DIC->exercise()->internal()->domain();
42 $this->access = $domain->access();
43 $this->user = $domain->user();
44 $this->feedback_zip = $domain->assignment()->tutorFeedbackZip();
45
46 $this->ass = $a_ass;
47 $this->setId("exc_mdf_upload");
48 parent::__construct($a_parent_obj, $a_parent_cmd);
51
52
53 $exc = new ilObjExercise($a_ass->getExerciseId(), false);
54 $this->setData($this->feedback_zip->getFiles($exc, $this->ass->getId(), $this->user->getId()));
55
56 $this->setLimit(9999);
57 $this->setTitle($lng->txt("exc_multi_feedback_files"));
58 $this->setSelectAllCheckbox("file[]");
59
60 $this->addColumn("", "", "1px", true);
61 $this->addColumn($this->lng->txt("lastname"), "lastname");
62 $this->addColumn($this->lng->txt("firstname"), "firstname");
63 $this->addColumn($this->lng->txt("login"), "login");
64 $this->addColumn($this->lng->txt("file"), "file");
65
66 $this->setFormAction($ctrl->getFormAction($a_parent_obj));
67 $this->setRowTemplate("tpl.multi_feedback_confirmation_row.html", "components/ILIAS/Exercise");
68
69 $this->addCommandButton("saveMultiFeedback", $lng->txt("save"));
70 $this->addCommandButton("cancelMultiFeedback", $lng->txt("cancel"));
71 }
72
73 protected function fillRow(array $a_set): void
74 {
75 $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
76 $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
77 $this->tpl->setVariable("LOGIN", $a_set["login"]);
78 $this->tpl->setVariable("FILE", $a_set["file"]);
79 $this->tpl->setVariable(
80 "POST_FILE",
81 $this->feedback_zip->getFileMd5((int) $a_set["user_id"], $a_set["file"])
82 );
83 $this->tpl->setVariable("USER_ID", $a_set["user_id"]);
84 }
85}
getFormAction(object $a_gui_obj, ?string $a_fallback_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
Exercise assignment.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd, ilExAssignment $a_ass)
Constructor.
fillRow(array $a_set)
Standard Version of Fill Row.
ILIAS Exercise TutorFeedbackFile TutorFeedbackZipManager $feedback_zip
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...
Class ilObjExercise.
User class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
setData(array $a_data)
Set table data.
ilLanguage $lng
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26