ILIAS  release_7 Revision v7.30-3-g800a261c036
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
13{
17 protected $access;
18
22 protected $user;
23
27 public function __construct($a_parent_obj, $a_parent_cmd, $a_ass)
28 {
29 global $DIC;
30
31 $this->ctrl = $DIC->ctrl();
32 $this->lng = $DIC->language();
33 $this->access = $DIC->access();
34 $this->user = $DIC->user();
35 $ilCtrl = $DIC->ctrl();
36 $lng = $DIC->language();
37 $ilAccess = $DIC->access();
38 $lng = $DIC->language();
39 $ilUser = $DIC->user();
40
41 $this->ass = $a_ass;
42 $this->setId("exc_mdf_upload");
43 parent::__construct($a_parent_obj, $a_parent_cmd);
44 $this->setLimit(9999);
45 $this->setData($this->ass->getMultiFeedbackFiles($ilUser->getId()));
46 $this->setTitle($lng->txt("exc_multi_feedback_files"));
47 $this->setSelectAllCheckbox("file[]");
48
49 $this->addColumn("", "", "1px", true);
50 $this->addColumn($this->lng->txt("lastname"), "lastname");
51 $this->addColumn($this->lng->txt("firstname"), "firstname");
52 $this->addColumn($this->lng->txt("login"), "login");
53 $this->addColumn($this->lng->txt("file"), "file");
54
55 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
56 $this->setRowTemplate("tpl.multi_feedback_confirmation_row.html", "Modules/Exercise");
57
58 $this->addCommandButton("saveMultiFeedback", $lng->txt("save"));
59 $this->addCommandButton("cancelMultiFeedback", $lng->txt("cancel"));
60 }
61
65 protected function fillRow($a_set)
66 {
68
69 $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
70 $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
71 $this->tpl->setVariable("LOGIN", $a_set["login"]);
72 $this->tpl->setVariable("FILE", $a_set["file"]);
73 $this->tpl->setVariable("POST_FILE", md5($a_set["file"]));
74 $this->tpl->setVariable("USER_ID", $a_set["user_id"]);
75 }
76}
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 $DIC
Definition: goto.php:24
$ilUser
Definition: imgupload.php:18
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc