5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
43 $this->ctrl = $DIC->ctrl();
44 $this->lng = $DIC->language();
45 $this->tpl = $DIC[
"tpl"];
47 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
50 $this->container_skills = $a_cont_skills;
52 parent::__construct($a_parent_obj, $a_parent_cmd);
54 $this->
setTitle($this->lng->txt(
"cont_cont_skills"));
57 $this->
addColumn($this->lng->txt(
"cont_skill"),
"",
"1");
58 $this->
addColumn($this->lng->txt(
"cont_path"),
"",
"1");
60 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
61 $this->
setRowTemplate(
"tpl.cont_skill_row.html",
"Services/Container/Skills");
64 $this->
addMultiCommand(
"confirmRemoveSelectedSkill", $this->lng->txt(
"remove"));
77 foreach ($this->container_skills->getSkills() as $sk) {
79 "skill_id" => $sk[
"skill_id"],
80 "tref_id" => $sk[
"tref_id"],
86 include_once(
"./Services/Skill/classes/class.ilVirtualSkillTree.php");
88 $skills = $vtree->getOrderedNodeset($skills,
"skill_id",
"tref_id");
100 $skill_tree = $this->skill_tree;
102 $tpl->setVariable(
"TITLE", $a_set[
"title"]);
103 $tpl->setVariable(
"ID", $a_set[
"skill_id"] .
":" . $a_set[
"tref_id"]);
__construct($a_parent_obj, $a_parent_cmd, ilContainerSkills $a_cont_skills)
Constructor.
TableGUI class for competences in containers.
getParentObject()
Get parent object.
fillRow($a_set)
Fill table row.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.