ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilFoundUsersTableGUI.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  public function __construct(
27  object $a_parent_obj,
28  string $a_parent_cmd = ""
29  ) {
30  global $DIC;
31 
32  $this->ctrl = $DIC->ctrl();
33  $this->lng = $DIC->language();
34  $ilCtrl = $DIC->ctrl();
35  $lng = $DIC->language();
36 
37  parent::__construct($a_parent_obj, $a_parent_cmd);
38 
39  $this->addColumn("", "f", "1");
40  $this->addColumn($lng->txt("login"), "", "33%");
41  $this->addColumn($lng->txt("firstname"), "", "33%");
42  $this->addColumn($lng->txt("lastname"), "", "33%");
43  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
44  $this->setRowTemplate("tpl.table_found_users_row.html", "Modules/Survey");
45  $this->setDefaultOrderField("lastname");
46  $this->setDefaultOrderDirection("asc");
47  }
48 
49  protected function fillRow(array $a_set): void
50  {
51  $ilCtrl = $this->ctrl;
52  $ilCtrl->setParameterByClass("ilObjSurveyAdministrationGUI", "item_id", $a_set["usr_id"]);
53  $this->tpl->setVariable("USER_ID", $a_set["usr_id"]);
54  $this->tpl->setVariable("LOGIN", $a_set["login"]);
55  $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
56  $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
57  }
58 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
setParameterByClass(string $a_class, string $a_parameter, $a_value)
ilLanguage $lng
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
__construct(object $a_parent_obj, string $a_parent_cmd="")