23 return $this->context_collection->
main()->desktop();
32 $lang = $this->dic->language();
34 $lang->loadLanguageModule(
"skill");
36 $title =
$lang->txt(
"skmg_skills");
40 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_skmg.svg"), $title);
43 $additional_data = $called_contexts->
current()->getAdditionalData();
44 if ($additional_data->is(self::SHOW_SKILL_TREE,
true)) {
45 $iff =
function ($id) {
46 return $this->identification_provider->contextAwareIdentifier($id);
48 $l =
function (
string $content) {
49 return $this->dic->ui()->factory()->legacy($content);
51 $tools[] = $this->factory->tool($iff(
"tree"))
54 ->withContentWrapper(
function () use ($l) {
59 $title =
$lang->txt(
"skmg_skill_templates");
60 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_skmg.svg"), $title);
62 if ($additional_data->is(self::SHOW_TEMPLATE_TREE,
true)) {
63 $iff =
function ($id) {
64 return $this->identification_provider->contextAwareIdentifier($id);
66 $l =
function (
string $content) {
67 return $this->dic->ui()->factory()->legacy($content);
69 $tools[] = $this->factory->tool($iff(
"tree"))
70 ->withTitle(
"Templates")
72 ->withContentWrapper(
function () use ($l) {
87 return $exp->getHTML();
98 return $exp->getHTML();
Explorer class that works on tree objects (Services/Tree)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Explorer class that works on tree objects (Services/Tree)