5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
31 public function __construct($a_parent_obj, $a_parent_cmd, $a_cskill_id, $a_usage)
35 $this->ctrl = $DIC->ctrl();
36 $this->lng = $DIC->language();
37 $this->access = $DIC->access();
39 $lng = $DIC->language();
40 $ilAccess = $DIC->access();
41 $lng = $DIC->language();
43 $id_parts = explode(
":", $a_cskill_id);
44 $this->skill_id = $id_parts[0];
45 $this->tref_id = $id_parts[1];
48 foreach ($a_usage as $k => $v) {
52 parent::__construct($a_parent_obj, $a_parent_cmd);
56 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
58 $path = $tree->getSkillTreePathAsString($this->skill_id, $this->tref_id);
61 $this->
addColumn($this->lng->txt(
"skmg_type"),
"",
"50%");
62 $this->
addColumn($this->lng->txt(
"skmg_number"),
"",
"50%");
65 $this->
setRowTemplate(
"tpl.skill_usage_row.html",
"Services/Skill");
81 $this->tpl->setVariable(
"NUMBER", count($a_set[
"usages"]));
setDescription($a_val)
Set description.
setEnableNumInfo($a_val)
Set enable num info.
fillRow($a_set)
Fill table row.
static getObjTypeString($a_type)
Get type info string.
__construct($a_parent_obj, $a_parent_cmd, $a_cskill_id, $a_usage)
Constructor.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getTypeInfoString($a_type)
Get type info string.
TableGUI class for skill usages.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
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.