5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
30 public function __construct($a_parent_obj, $a_parent_cmd, $a_profile, $a_write_permission =
false)
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
38 $lng = $DIC->language();
39 $ilAccess = $DIC->access();
40 $lng = $DIC->language();
42 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
43 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
46 $this->profile = $a_profile;
47 parent::__construct($a_parent_obj, $a_parent_cmd);
49 $this->
setData($this->profile->getSkillLevels());
53 $this->
addColumn($this->lng->txt(
"skmg_skill"));
54 $this->
addColumn($this->lng->txt(
"skmg_level"));
57 $this->
setRowTemplate(
"tpl.skill_profile_level_row.html",
"Services/Skill");
59 if ($a_write_permission) {
70 $path = $this->tree->getSkillTreePath(
71 $a_set[
"base_skill_id"],
74 $path_items = array();
75 foreach (
$path as $p) {
76 if ($p[
"type"] !=
"skrt") {
77 $path_items[] = $p[
"title"];
80 $this->tpl->setVariable(
82 implode($path_items,
" > ")
87 $this->tpl->setVariable(
89 ((
int) $a_set[
"base_skill_id"]) .
":" . ((
int) $a_set[
"tref_id"]) .
":" . ((
int) $a_set[
"level_id"])
TableGUI class for skill profile levels.
static lookupLevelTitle($a_id)
Lookup level title.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, $a_profile, $a_write_permission=false)
Constructor.
fillRow($a_set)
Fill table row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.