ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilSpecialUsersTableGUI.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_special_users_row.html", "Modules/Survey");
29  $this->setDefaultOrderField("lastname");
30  $this->setDefaultOrderDirection("asc");
31  }
32 
37  protected function fillRow($a_set)
38  {
40  $user = ilObjUser::_lookupFields($a_set);
41  $ilCtrl->setParameterByClass("ilObjSurveyAdministrationGUI", "item_id", $user["usr_id"]);
42  $this->tpl->setVariable("USER_ID", $user["usr_id"]);
43  $this->tpl->setVariable("LOGIN", $user["login"]);
44  $this->tpl->setVariable("FIRSTNAME", $user["firstname"]);
45  $this->tpl->setVariable("LASTNAME", $user["lastname"]);
46  }
47 }
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
fillRow($a_set)
Standard Version of Fill Row.
__construct($a_parent_obj, $a_parent_cmd="")
global $ilCtrl
Definition: ilias.php:18
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
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.
$DIC
Definition: xapitoken.php:46
static _lookupFields($a_user_id)
lookup fields (deprecated; use more specific methods instead)
TableGUI class for special users in survey administration.