3 declare(strict_types=1);
44 return $this->context_collection->
main()->desktop();
53 $lang = $this->dic->language();
55 $lang->loadLanguageModule(
"skill");
57 $title =
$lang->txt(
"skmg_skills");
61 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"standard/icon_skmg.svg"), $title);
63 $additional_data = $called_contexts->
current()->getAdditionalData();
64 if ($additional_data->is(self::SHOW_SKILL_TREE,
true)) {
65 $tree_id = $additional_data->get(self::SKILL_TREE_ID);
66 $tools[] = $this->factory->tool($this->identification_provider->contextAwareIdentifier(
"tree"))
69 ->withContentWrapper(
function () use ($tree_id):
Legacy {
70 return $this->dic->ui()->factory()->legacy($this->
getSkillTree($tree_id));
74 $title =
$lang->txt(
"skmg_skill_templates");
75 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"standard/icon_skmg.svg"), $title);
77 if ($additional_data->is(self::SHOW_TEMPLATE_TREE,
true)) {
78 $tree_id = $additional_data->get(self::SKILL_TREE_ID);
79 $tools[] = $this->factory->tool($this->identification_provider->contextAwareIdentifier(
"tree"))
80 ->withTitle(
"Templates")
82 ->withContentWrapper(
function () use ($tree_id):
Legacy {
83 return $this->dic->ui()->factory()->legacy($this->
getTemplateTree($tree_id));
92 "ilSkillTreeAdminGUI",
"ilObjSkillTreeGUI"],
"showTree", $tree_id);
94 return $exp->getHTML();
100 "ilSkillTreeAdminGUI",
"ilObjSkillTreeGUI"],
"showTree", $tree_id);
102 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)