ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilFoundUsersTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11{
12 public function __construct($a_parent_obj, $a_parent_cmd = "")
13 {
14 global $DIC;
15
16 $this->ctrl = $DIC->ctrl();
17 $this->lng = $DIC->language();
18 $ilCtrl = $DIC->ctrl();
19 $lng = $DIC->language();
20
21 parent::__construct($a_parent_obj, $a_parent_cmd);
22
23 $this->addColumn("", "f", "1");
24 $this->addColumn($lng->txt("login"), "", "33%");
25 $this->addColumn($lng->txt("firstname"), "", "33%");
26 $this->addColumn($lng->txt("lastname"), "", "33%");
27 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
28 $this->setRowTemplate("tpl.table_found_users_row.html", "Modules/Survey");
29 $this->setDefaultOrderField("lastname");
30 $this->setDefaultOrderDirection("asc");
31 }
32
37 protected function fillRow($a_set)
38 {
39 $ilCtrl = $this->ctrl;
40 $ilCtrl->setParameterByClass("ilObjSurveyAdministrationGUI", "item_id", $a_set["usr_id"]);
41 $this->tpl->setVariable("USER_ID", $a_set["usr_id"]);
42 $this->tpl->setVariable("LOGIN", $a_set["login"]);
43 $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
44 $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
45 }
46}
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for found users in survey administration.
__construct($a_parent_obj, $a_parent_cmd="")
Constructor.
fillRow($a_set)
Standard Version of Fill Row.
Class ilTable2GUI.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc