ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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;
58  $tpl = $this->tpl;
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;
77  $tpl = $this->tpl;
78  $lng = $this->lng;
79 
80  $tpl->setTitleIcon(ilUtil::getImagePath("icon_skmg.svg"));
81  $tpl->setTitle(
82  $lng->txt("skmg_skill_template") . ": " . $this->node_object->getTitle()
83  );
84  }
85 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Skill template GUI class.
global $DIC
Definition: feed.php:28
Basic GUI class for skill tree nodes.
ilGlobalTemplateInterface $tpl
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
__construct(Tree\SkillTreeNodeManager $node_manager, int $a_node_id=0)
__construct(Container $dic, ilPlugin $plugin)