5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $a_mode = self::MODE_SCAT, $a_tref_id = 0)
29 $this->tref_id = $a_tref_id;
30 $ilCtrl->setParameter($a_parent_obj,
"tmpmode", $a_mode);
32 $this->mode = $a_mode;
33 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
35 $this->obj_id = $a_obj_id;
39 if ($this->mode == self::MODE_SCAT)
41 $childs = $this->skill_tree->getChildsByTypeFilter($a_obj_id,
42 array(
"skrt",
"skll",
"scat",
"sktr"));
46 else if ($this->mode == self::MODE_SCTP)
48 $childs = $this->skill_tree->getChildsByTypeFilter($a_obj_id,
49 array(
"skrt",
"sktp",
"sctp"));
54 if ($this->obj_id != $this->skill_tree->readRootId())
58 $this->
setTitle($lng->txt(
"skmg_items"));
60 if ($this->tref_id == 0)
62 $this->
addColumn($this->lng->txt(
""),
"",
"1px",
true);
64 $this->
addColumn($this->lng->txt(
"type"),
"",
"1px");
65 if ($this->tref_id == 0)
67 $this->
addColumn($this->lng->txt(
"skmg_order"),
"",
"1px");
69 $this->
addColumn($this->lng->txt(
"title"));
74 if ($this->tref_id == 0)
90 switch($a_set[
"type"])
94 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id", $a_set[
"child"]);
95 $ret = $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"listItems");
96 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id",
$_GET[
"obj_id"]);
102 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id", $a_set[
"child"]);
103 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id", $tid);
104 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"listItems");
105 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id",
$_GET[
"obj_id"]);
106 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"tref_id",
$_GET[
"tref_id"]);
111 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id", $a_set[
"child"]);
112 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"edit");
113 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id",
$_GET[
"obj_id"]);
120 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id", $a_set[
"child"]);
121 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"edit");
122 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id",
$_GET[
"obj_id"]);
127 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id", $a_set[
"child"]);
128 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"listItems");
129 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id",
$_GET[
"obj_id"]);
133 if ($this->tref_id == 0)
135 $this->tpl->setCurrentBlock(
"cb");
136 $this->tpl->setVariable(
"CB_ID", $a_set[
"child"]);
137 $this->tpl->parseCurrentBlock();
139 $this->tpl->setCurrentBlock(
"nr");
140 $this->tpl->setVariable(
"OBJ_ID", $a_set[
"child"]);
141 $this->tpl->setVariable(
"ORDER_NR", $a_set[
"order_nr"]);
142 $this->tpl->parseCurrentBlock();
145 $this->tpl->setVariable(
"HREF_TITLE",
$ret);
147 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);