ILIAS  release_8 Revision v8.24
class.ilSkillTemplateGUI.php
Go to the documentation of this file.
1<?php
2
21
29{
30 protected ilCtrl $ctrl;
32 protected ilTabsGUI $tabs;
33 protected ilLanguage $lng;
34
35 public function __construct(Tree\SkillTreeNodeManager $node_manager, int $a_node_id = 0)
36 {
37 global $DIC;
38
39 $this->ctrl = $DIC->ctrl();
40 $this->tpl = $DIC["tpl"];
41 $this->tabs = $DIC->tabs();
42 $this->lng = $DIC->language();
43 $ilCtrl = $DIC->ctrl();
44
45 $ilCtrl->saveParameter($this, "node_id");
46
47 parent::__construct($node_manager, $a_node_id);
48 }
49
50 public function getType(): string
51 {
52 return "stmp";
53 }
54
55 public function executeCommand(): void
56 {
57 $ilCtrl = $this->ctrl;
59 $ilTabs = $this->tabs;
60
61 //$tpl->getStandardTemplate();
62
63 $next_class = $ilCtrl->getNextClass($this);
64 $cmd = $ilCtrl->getCmd();
65
66 switch ($next_class) {
67 default:
68 $ret = $this->$cmd();
69 break;
70 }
71 }
72
73 public function setTabs(): void
74 {
75 $ilTabs = $this->tabs;
76 $ilCtrl = $this->ctrl;
79
80 $tpl->setTitleIcon(ilUtil::getImagePath("icon_skmg.svg"));
82 $lng->txt("skmg_skill_template") . ": " . $this->node_object->getTitle()
83 );
84 }
85}
Class ilCtrl provides processing control methods.
language handling
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Skill template GUI class.
ilGlobalTemplateInterface $tpl
__construct(Tree\SkillTreeNodeManager $node_manager, int $a_node_id=0)
Basic GUI class for skill tree nodes.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...