ILIAS  release_8 Revision v8.24
class.ilFeedbackConfirmationTable2GUI.php
Go to the documentation of this file.
1<?php
2
25{
27 protected ilObjUser $user;
29
33 public function __construct(
34 object $a_parent_obj,
35 string $a_parent_cmd,
36 ilExAssignment $a_ass
37 ) {
38 global $DIC;
39
40 $this->access = $DIC->access();
41 $this->user = $DIC->user();
42 $ilUser = $DIC->user();
43
44 $this->ass = $a_ass;
45 $this->setId("exc_mdf_upload");
46 parent::__construct($a_parent_obj, $a_parent_cmd);
49
50 $this->setLimit(9999);
51 $this->setData($this->ass->getMultiFeedbackFiles($ilUser->getId()));
52 $this->setTitle($lng->txt("exc_multi_feedback_files"));
53 $this->setSelectAllCheckbox("file[]");
54
55 $this->addColumn("", "", "1px", true);
56 $this->addColumn($this->lng->txt("lastname"), "lastname");
57 $this->addColumn($this->lng->txt("firstname"), "firstname");
58 $this->addColumn($this->lng->txt("login"), "login");
59 $this->addColumn($this->lng->txt("file"), "file");
60
61 $this->setFormAction($ctrl->getFormAction($a_parent_obj));
62 $this->setRowTemplate("tpl.multi_feedback_confirmation_row.html", "Modules/Exercise");
63
64 $this->addCommandButton("saveMultiFeedback", $lng->txt("save"));
65 $this->addCommandButton("cancelMultiFeedback", $lng->txt("cancel"));
66 }
67
68 protected function fillRow(array $a_set): void
69 {
70 $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
71 $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
72 $this->tpl->setVariable("LOGIN", $a_set["login"]);
73 $this->tpl->setVariable("FILE", $a_set["file"]);
74 $this->tpl->setVariable("POST_FILE", md5($a_set["file"]));
75 $this->tpl->setVariable("USER_ID", $a_set["user_id"]);
76 }
77}
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.
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...
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
global $DIC
Definition: feed.php:28
$ilUser
Definition: imgupload.php:34
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc