ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilSkillProfileTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 function __construct($a_parent_obj, $a_parent_cmd)
21 {
22 global $ilCtrl, $lng, $ilAccess, $lng;
23
24 parent::__construct($a_parent_obj, $a_parent_cmd);
25 $this->setData($this->getProfiles());
26 $this->setTitle($lng->txt("skmg_skill_profiles"));
27
28 $this->addColumn("", "", "1px", true);
29 $this->addColumn($this->lng->txt("title"), "title");
30 $this->addColumn($this->lng->txt("users"));
31 $this->addColumn($this->lng->txt("actions"));
32
33 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
34 $this->setRowTemplate("tpl.skill_profile_row.html", "Services/Skill");
35
36 $this->addMultiCommand("exportProfiles", $lng->txt("export"));
37 $this->addMultiCommand("confirmDeleteProfiles", $lng->txt("delete"));
38 //$this->addCommandButton("", $lng->txt(""));
39 }
40
46 function getProfiles()
47 {
48 include_once("./Services/Skill/classes/class.ilSkillProfile.php");
50 }
51
52
56 protected function fillRow($a_set)
57 {
58 global $lng, $ilCtrl;
59
60 $this->tpl->setCurrentBlock("cmd");
61 $this->tpl->setVariable("CMD", $lng->txt("edit"));
62 $ilCtrl->setParameter($this->parent_obj, "sprof_id", $a_set["id"]);
63 $this->tpl->setVariable("CMD_HREF", $ilCtrl->getLinkTarget($this->parent_obj, "showUsers"));
64 $ilCtrl->setParameter($this->parent_obj, "sprof_id", $_GET["sprof_id"]);
65 $this->tpl->parseCurrentBlock();
66
67 $this->tpl->setVariable("ID", $a_set["id"]);
68 $this->tpl->setVariable("TITLE", $a_set["title"]);
69 $this->tpl->setVariable("NUM_USERS", ilSkillProfile::countUsers($a_set["id"]));
70 }
71
72}
73?>
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for skill profiles.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
static countUsers($a_profile_id)
Get assigned users.
static getProfiles()
Get profiles.
Class ilTable2GUI.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:17