5include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   20        function __construct($a_parent_obj, $a_parent_cmd, $a_profile)
 
   24                include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
 
   25                include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
 
   28                $this->profile = $a_profile;
 
   29                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   31                $this->
setData($this->profile->getSkillLevels());
 
   32                $this->
setTitle($lng->txt(
"skmg_skill_levels"));
 
   35                $this->
addColumn($this->lng->txt(
"skmg_skill"));
 
   36                $this->
addColumn($this->lng->txt(
"skmg_level"));
 
   39                $this->
setRowTemplate(
"tpl.skill_profile_level_row.html", 
"Services/Skill");
 
   41                $this->
addMultiCommand(
"confirmLevelAssignmentRemoval", $lng->txt(
"skmg_remove_levels"));
 
   50                $path = $this->tree->getSkillTreePath($a_set[
"base_skill_id"],
 
   52                $path_items = array();
 
   55                        if ($p[
"type"] != 
"skrt")
 
   57                                $path_items[] = $p[
"title"];
 
   60                $this->tpl->setVariable(
"SKILL_TITLE",
 
   61                        implode($path_items, 
" > "));
 
   65                $this->tpl->setVariable(
"ID",
 
   66                        ((
int) $a_set[
"base_skill_id"]).
":".((
int) $a_set[
"tref_id"]).
":".((
int) $a_set[
"level_id"]));
 
An exception for terminatinating execution or to throw for unit testing.
static lookupLevelTitle($a_id)
Lookup level title.
TableGUI class for skill profile levels.
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_profile)
Constructor.
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.