19 declare(strict_types=1);
43 return $this->context_collection->
main()->desktop();
52 $lang = $this->dic->language();
54 $lang->loadLanguageModule(
"skill");
56 $title =
$lang->txt(
"skmg_skills");
60 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"standard/icon_skmg.svg"), $title);
62 $additional_data = $called_contexts->
current()->getAdditionalData();
63 if ($additional_data->is(self::SHOW_SKILL_TREE,
true)) {
64 $tree_id = $additional_data->get(self::SKILL_TREE_ID);
65 $tools[] = $this->
factory->tool($this->identification_provider->contextAwareIdentifier(
"tree"))
68 ->withContentWrapper(
function () use ($tree_id):
Content {
69 return $this->dic->ui()->factory()->legacy()->content($this->
getSkillTree($tree_id));
73 $title =
$lang->txt(
"skmg_skill_templates");
74 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"standard/icon_skmg.svg"), $title);
76 if ($additional_data->is(self::SHOW_TEMPLATE_TREE,
true)) {
77 $tree_id = $additional_data->get(self::SKILL_TREE_ID);
78 $tools[] = $this->
factory->tool($this->identification_provider->contextAwareIdentifier(
"tree"))
81 ->withContentWrapper(
function () use ($tree_id):
Content {
82 return $this->dic->ui()->factory()->legacy()->content($this->
getTemplateTree($tree_id));
91 "ilSkillTreeAdminGUI",
"ilObjSkillTreeGUI"],
"showTree", $tree_id);
93 return $exp->getHTML();
99 "ilSkillTreeAdminGUI",
"ilObjSkillTreeGUI"],
"showTree", $tree_id);
101 return $exp->getHTML();
Explorer class that works on tree objects (Services/Tree)
static getImagePath(string $image_name, 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)