ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilSkillTemplateGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 protected $ctrl;
17
21 protected $tpl;
22
26 protected $tabs;
27
31 protected $lng;
32
33
37 public function __construct($a_node_id = 0)
38 {
39 global $DIC;
40
41 $this->ctrl = $DIC->ctrl();
42 $this->tpl = $DIC["tpl"];
43 $this->tabs = $DIC->tabs();
44 $this->lng = $DIC->language();
45 $ilCtrl = $DIC->ctrl();
46
47 $ilCtrl->saveParameter($this, "obj_id");
48
49 parent::__construct($a_node_id);
50 }
51
55 public function getType()
56 {
57 return "stmp";
58 }
59
63 public function executeCommand()
64 {
65 $ilCtrl = $this->ctrl;
67 $ilTabs = $this->tabs;
68
69 //$tpl->getStandardTemplate();
70
71 $next_class = $ilCtrl->getNextClass($this);
72 $cmd = $ilCtrl->getCmd();
73
74 switch ($next_class) {
75 default:
76 $ret = $this->$cmd();
77 break;
78 }
79 }
80
84 public function setTabs()
85 {
86 $ilTabs = $this->tabs;
87 $ilCtrl = $this->ctrl;
90
91 $tpl->setTitleIcon(ilUtil::getImagePath("icon_skmg.svg"));
92 $tpl->setTitle(
93 $lng->txt("skmg_skill_template") . ": " . $this->node_object->getTitle()
94 );
95 }
96
97
101 public function proceedDragDrop()
102 {
103 $ilCtrl = $this->ctrl;
104
105 // $this->slm_object->executeDragDrop($_POST["il_hform_source_id"], $_POST["il_hform_target_id"],
106// $_POST["il_hform_fc"], $_POST["il_hform_as_subitem"]);
107// $ilCtrl->redirect($this, "showOrganization");
108 }
109}
An exception for terminatinating execution or to throw for unit testing.
Skill template GUI class.
proceedDragDrop()
Perform drag and drop action.
__construct($a_node_id=0)
Constructor.
executeCommand()
Execute command.
Basic GUI class for skill tree nodes.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$ret
Definition: parser.php:6