ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilSkillLevelProfileAssignmentTableGUI.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, $a_cskill_id)
21 {
22 global $ilCtrl, $lng;
23
24 include_once("./Services/Skill/classes/class.ilBasicSkill.php");
25
26 $parts = explode(":", $a_cskill_id);
27 $this->skill_id = (int) $parts[0];
28 $this->tref_id = (int) $parts[1];
29
30 $this->skill = new ilBasicSkill($this->skill_id);
31 parent::__construct($a_parent_obj, $a_parent_cmd);
32 $this->setData($this->skill->getLevelData());
33 $this->setTitle($this->skill->getTitle().", ".
34 $lng->txt("skmg_skill_levels"));
35
36 $this->addColumn($this->lng->txt("title"));
37 $this->addColumn($this->lng->txt("actions"));
38
39 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
40 $this->setRowTemplate("tpl.skill_level_profile_assignment_row.html", "Services/Skill");
41 }
42
46 protected function fillRow($a_set)
47 {
48 global $lng, $ilCtrl;
49
50 $this->tpl->setCurrentBlock("cmd");
51 $this->tpl->setVariable("CMD", $lng->txt("skmg_assign_level"));
52 $ilCtrl->setParameter($this->parent_obj, "level_id", (int) $a_set["id"]);
53 $this->tpl->setVariable("CMD_HREF", $ilCtrl->getLinkTarget($this->parent_obj,
54 "assignLevelToProfile"));
55 $ilCtrl->setParameter($this->parent_obj, "level_id", $_GET["level_id"]);
56 $this->tpl->parseCurrentBlock();
57
58 $this->tpl->setVariable("TITLE", $a_set["title"]);
59 }
60
61}
62?>
$_GET["client_id"]
TableGUI class for skill profile skill level assignment.
__construct($a_parent_obj, $a_parent_cmd, $a_cskill_id)
Constructor.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40