4 include_once(
"./Services/Skill/classes/class.ilVirtualSkillTreeExplorerGUI.php");
33 $this->lng = $DIC->language();
34 $this->ctrl = $DIC->ctrl();
35 parent::__construct(
"skill_exp", $a_parent_obj, $a_parent_cmd);
54 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
55 $a_parent_skl_tree_id = $a_parent_id_parts[0];
56 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
62 if ($a_node[
"type"] ==
"skrt") {
65 if ($a_node[
"type"] ==
"sktr") {
66 include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
73 if ($a_parent_skl_template_tree_id == 0 || $a_node[
"type"] ==
"sktr") {
79 if ($this->vtree->isOutdated($a_node[
"id"])) {
94 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
95 $a_parent_skl_tree_id = $a_parent_id_parts[0];
96 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
100 if ($a_node[
"type"] ==
"skrt") {
103 if (in_array($a_node[
"type"],
array(
"skll",
"scat",
"sctr",
"sktr",
"sctp",
"sktp"))) {
105 $a_parent_skl_tree_id,
108 ($this->vtree->isDraft($a_node[
"id"]) || $this->vtree->isOutdated($a_node[
"id"]))
126 $id_parts = explode(
":", $a_node[
"id"]);
127 if ($id_parts[1] == 0) {
129 $skill_id = $a_node[
"id"];
133 $tref_id = $id_parts[0];
134 $skill_id = $id_parts[1];
137 if (
$_GET[
"obj_id"] ==
"" && $a_node[
"type"] ==
"skrt") {
141 if ($skill_id ==
$_GET[
"obj_id"] &&
142 (
$_GET[
"tref_id"] == $tref_id)) {
158 $id_parts = explode(
":", $a_node[
"id"]);
159 if ($id_parts[1] == 0) {
161 $skill_id = $a_node[
"id"];
165 $tref_id = $id_parts[0];
166 $skill_id = $id_parts[1];
170 "skrt" =>
"ilskillrootgui",
171 "scat" =>
"ilskillcategorygui",
172 "sktr" =>
"ilskilltemplatereferencegui",
173 "skll" =>
"ilbasicskillgui",
174 "sktp" =>
"ilbasicskilltemplategui",
175 "sctp" =>
"ilskilltemplatecategorygui" 179 "skrt" =>
"listSkills",
180 "scat" =>
"listItems",
181 "sktr" =>
"listItems",
184 "sctp" =>
"listItems" 187 $gui_class = $gui_class[$a_node[
"type"]];
188 $cmd = $cmd[$a_node[
"type"]];
190 $ilCtrl->setParameterByClass($gui_class,
"tref_id", $tref_id);
191 $ilCtrl->setParameterByClass($gui_class,
"obj_id", $skill_id);
192 $ret =
$ilCtrl->getLinkTargetByClass($gui_class, $cmd);
193 $ilCtrl->setParameterByClass($gui_class,
"obj_id",
$_GET[
"obj_id"]);
194 $ilCtrl->setParameterByClass($gui_class,
"tref_id",
$_GET[
"tref_id"]);
setShowDraftNodes($a_val)
Set show draft nodes.
static _lookupSelfEvaluation($a_obj_id)
Lookup self evaluation.
static getIconPath($a_obj_id, $a_type, $a_size="", $a_status=0)
Get icon path.
setSkipRootNode($a_val)
Set skip root node.
isNodeClickable($a_node)
Is clickable.
setShowOutdatedNodes($a_val)
Set show outdated nodes.
getNodeHref($a_node)
Get href for node.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static _lookupTemplateId($a_obj_id)
Lookup template ID.
Create styles array
The data for the language used.
isNodeHighlighted($a_node)
Is node highlighted?
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
getNodeIcon($a_node)
Get node content.
Explorer class that works on tree objects (Services/Tree)
getNodeContent($a_node)
Get node content.
Virtual skill tree explorer.