ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSkillProfileUserTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
20  function __construct($a_parent_obj, $a_parent_cmd, $a_profile)
21  {
22  global $ilCtrl, $lng, $ilAccess, $lng;
23 
24  $this->profile = $a_profile;
25  parent::__construct($a_parent_obj, $a_parent_cmd);
26  $this->setData($this->profile->getAssignedUsers());
27  $this->setTitle($lng->txt("skmg_assigned_users"));
28 
29  $this->addColumn("", "", "1px", true);
30  $this->addColumn($this->lng->txt("lastname"), "lastname");
31  $this->addColumn($this->lng->txt("firstname"), "firstname");
32  $this->addColumn($this->lng->txt("login"), "login");
33 // $this->addColumn($this->lng->txt("actions"));
34 
35  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
36  $this->setRowTemplate("tpl.profile_user_row.html", "Services/Skill");
37 
38  $this->addMultiCommand("confirmUserRemoval", $lng->txt("remove"));
39  //$this->addCommandButton("", $lng->txt(""));
40  }
41 
45  protected function fillRow($a_set)
46  {
47  global $lng;
48 
49  $this->tpl->setVariable("LASTNAME", $a_set["lastname"]);
50  $this->tpl->setVariable("FIRSTNAME", $a_set["firstname"]);
51  $this->tpl->setVariable("LOGIN", $a_set["login"]);
52  $this->tpl->setVariable("ID", $a_set["id"]);
53  }
54 
55 }
56 ?>