ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilTestInviteUsersTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
5 include_once('./Services/Table/classes/class.ilTable2GUI.php');
6 
16 {
24  public function __construct($a_parent_obj, $a_parent_cmd)
25  {
26  parent::__construct($a_parent_obj, $a_parent_cmd);
27 
28  global $lng, $ilCtrl;
29 
30  $this->lng = $lng;
31  $this->ctrl = $ilCtrl;
32  $this->counter = 1;
33 
34  $this->setFormName('inviteusers');
35  $this->setStyle('table', 'fullwidth');
36 
37  $this->addColumn('','f','1%');
38  $this->addColumn($this->lng->txt("login"),'login', '');
39  $this->addColumn($this->lng->txt("firstname"),'firstname', '');
40  $this->addColumn($this->lng->txt("lastname"),'lastname', '');
41  $this->addColumn($this->lng->txt("clientip"),'clientip', '');
42 
43  $this->setTitle($this->lng->txt('search_users'), 'icon_usr.png', $this->lng->txt('usr'));
44 
45  $this->setRowTemplate("tpl.il_as_tst_invite_users_row.html", "Modules/Test");
46 
47  $this->addMultiCommand('addParticipants', $this->lng->txt('add'));
48 
49  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
50 
51  $this->setDefaultOrderField("login");
52  $this->setDefaultOrderDirection("asc");
53  $this->setPrefix('user_select');
54  $this->setSelectAllCheckbox('user_select');
55 
56  $this->enable('header');
57  $this->enable('sort');
58  $this->enable('select_all');
59  }
60 
68  public function fillRow($data)
69  {
70  $this->tpl->setVariable("USER_ID", $data['usr_id']);
71  $this->tpl->setVariable("LOGIN", $data['login']);
72  $this->tpl->setVariable("FIRSTNAME", $data['firstname']);
73  $this->tpl->setVariable("LASTNAME", $data['lastname']);
74  $this->tpl->setVariable("CLIENT_IP", $data['clientip']);
75  }
76 }
77 ?>