ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
5 include_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 ?>