ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 function __construct($a_parent_obj, $a_parent_cmd, $a_ass)
21 {
22 global $ilCtrl, $lng, $ilAccess, $lng, $ilUser;
23
24 $this->ass = $a_ass;
25 $this->setId("exc_mdf_upload");
26 parent::__construct($a_parent_obj, $a_parent_cmd);
27 $this->setLimit(9999);
28 $this->setData($this->ass->getMultiFeedbackFiles($ilUser->getId()));
29 $this->setTitle($lng->txt("exc_multi_feedback_files"));
30 $this->setSelectAllCheckbox("file[]");
31
32 $this->addColumn("", "", "1px", true);
33 $this->addColumn($this->lng->txt("lastname"), "lastname");
34 $this->addColumn($this->lng->txt("firstname"), "firstname");
35 $this->addColumn($this->lng->txt("login"), "login");
36 $this->addColumn($this->lng->txt("file"), "file");
37
38 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
39 $this->setRowTemplate("tpl.multi_feedback_confirmation_row.html", "Modules/Exercise");
40
41 $this->addCommandButton("saveMultiFeedback", $lng->txt("save"));
42 $this->addCommandButton("cancelMultiFeedback", $lng->txt("cancel"));
43 }
44
48 protected function fillRow($a_set)
49 {
50 global $lng;
51
52 $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
53 $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
54 $this->tpl->setVariable("LOGIN", $a_set["login"]);
55 $this->tpl->setVariable("FILE", $a_set["file"]);
56 $this->tpl->setVariable("POST_FILE", md5($a_set["file"]));
57 $this->tpl->setVariable("USER_ID", $a_set["user_id"]);
58 }
59
60}
61?>
__construct($a_parent_obj, $a_parent_cmd, $a_ass)
Constructor.
Class ilTable2GUI.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
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.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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 $lng
Definition: privfeed.php:40
global $ilUser
Definition: imgupload.php:15