ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilFeedbackConfirmationTable2GUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 protected $access;
21
25 protected $user;
26
30 public function __construct($a_parent_obj, $a_parent_cmd, $a_ass)
31 {
32 global $DIC;
33
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
37 $this->user = $DIC->user();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
40 $ilAccess = $DIC->access();
41 $lng = $DIC->language();
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);
47 $this->setLimit(9999);
48 $this->setData($this->ass->getMultiFeedbackFiles($ilUser->getId()));
49 $this->setTitle($lng->txt("exc_multi_feedback_files"));
50 $this->setSelectAllCheckbox("file[]");
51
52 $this->addColumn("", "", "1px", true);
53 $this->addColumn($this->lng->txt("lastname"), "lastname");
54 $this->addColumn($this->lng->txt("firstname"), "firstname");
55 $this->addColumn($this->lng->txt("login"), "login");
56 $this->addColumn($this->lng->txt("file"), "file");
57
58 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
59 $this->setRowTemplate("tpl.multi_feedback_confirmation_row.html", "Modules/Exercise");
60
61 $this->addCommandButton("saveMultiFeedback", $lng->txt("save"));
62 $this->addCommandButton("cancelMultiFeedback", $lng->txt("cancel"));
63 }
64
68 protected function fillRow($a_set)
69 {
71
72 $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
73 $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
74 $this->tpl->setVariable("LOGIN", $a_set["login"]);
75 $this->tpl->setVariable("FILE", $a_set["file"]);
76 $this->tpl->setVariable("POST_FILE", md5($a_set["file"]));
77 $this->tpl->setVariable("USER_ID", $a_set["user_id"]);
78 }
79}
user()
Definition: user.php:4
An exception for terminatinating execution or to throw for unit testing.
__construct($a_parent_obj, $a_parent_cmd, $a_ass)
Constructor.
Class ilTable2GUI.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setId($a_val)
Set id.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7
$ilUser
Definition: imgupload.php:18