5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
21 function __construct($a_parent_obj, $a_parent_cmd, $a_cskill_id, $a_usage)
25 $id_parts = explode(
":", $a_cskill_id);
26 $this->skill_id = $id_parts[0];
27 $this->tref_id = $id_parts[1];
30 foreach ($a_usage as $k => $v)
32 $data[] = array(
"type" => $k,
"usages" => $v);
39 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
41 $path = $tree->getSkillTreePathAsString($this->skill_id, $this->tref_id);
44 $this->
addColumn($this->lng->txt(
"skmg_type"),
"",
"50%");
45 $this->
addColumn($this->lng->txt(
"skmg_number"),
"",
"50%");
48 $this->
setRowTemplate(
"tpl.skill_usage_row.html",
"Services/Skill");
64 $this->tpl->setVariable(
"NUMBER", count($a_set[
"usages"]));