ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 protected $ctrl;
21
25 protected $access;
26
30 public function __construct($a_parent_obj, $a_parent_cmd, $a_profile, $a_write_permission = false)
31 {
32 global $DIC;
33
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
37 $ilCtrl = $DIC->ctrl();
38 $lng = $DIC->language();
39 $ilAccess = $DIC->access();
40 $lng = $DIC->language();
41
42 $this->profile = $a_profile;
43 parent::__construct($a_parent_obj, $a_parent_cmd);
44 $this->setData($this->profile->getAssignments());
45 $this->setTitle($lng->txt("skmg_assigned_users"));
46
47 $this->addColumn("", "", "1px", true);
48 $this->addColumn($this->lng->txt("type"), "type");
49 $this->addColumn($this->lng->txt("name"), "name");
50 $this->addColumn($this->lng->txt("object"), "object");
51 // $this->addColumn($this->lng->txt("actions"));
52
53 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
54 $this->setRowTemplate("tpl.profile_user_row.html", "Services/Skill");
55 $this->setSelectAllCheckbox("id[]");
56
57 if ($a_write_permission) {
58 $this->addMultiCommand("confirmUserRemoval", $lng->txt("remove"));
59 }
60 //$this->addCommandButton("", $lng->txt(""));
61 }
62
66 protected function fillRow($a_set)
67 {
69
70 $this->tpl->setVariable("TYPE", $a_set["type"]);
71 $this->tpl->setVariable("NAME", $a_set["name"]);
72 $this->tpl->setVariable("ID", $a_set["id"]);
73 $this->tpl->setVariable("OBJECT", $a_set["object"]);
74 }
75}
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for skill profile user assignment.
__construct($a_parent_obj, $a_parent_cmd, $a_profile, $a_write_permission=false)
Constructor.
Class ilTable2GUI.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
global $ilCtrl
Definition: ilias.php:18
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46