42 return $this->context_collection->
main()->desktop();
51 $lang = $this->dic->language();
53 $lang->loadLanguageModule(
"skill");
55 $title =
$lang->txt(
"skmg_skills");
59 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"icon_skmg.svg"), $title);
61 $additional_data = $called_contexts->
current()->getAdditionalData();
62 if ($additional_data->is(self::SHOW_SKILL_TREE,
true)) {
63 $tree_id = $additional_data->get(self::SKILL_TREE_ID);
64 $tools[] = $this->factory->tool($this->identification_provider->contextAwareIdentifier(
"tree"))
67 ->withContentWrapper(
function () use ($tree_id):
Legacy {
68 return $this->dic->ui()->factory()->legacy($this->
getSkillTree($tree_id));
72 $title =
$lang->txt(
"skmg_skill_templates");
73 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"icon_skmg.svg"), $title);
75 if ($additional_data->is(self::SHOW_TEMPLATE_TREE,
true)) {
76 $tree_id = $additional_data->get(self::SKILL_TREE_ID);
77 $tools[] = $this->factory->tool($this->identification_provider->contextAwareIdentifier(
"tree"))
78 ->withTitle(
"Templates")
80 ->withContentWrapper(
function () use ($tree_id):
Legacy {
81 return $this->dic->ui()->factory()->legacy($this->
getTemplateTree($tree_id));
90 "ilSkillTreeAdminGUI",
"ilObjSkillTreeGUI"],
"showTree", $tree_id);
92 return $exp->getHTML();
98 "ilSkillTreeAdminGUI",
"ilObjSkillTreeGUI"],
"showTree", $tree_id);
100 return $exp->getHTML();
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Explorer class that works on tree objects (Services/Tree)
Explorer class that works on tree objects (Services/Tree)