ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilSkillTemplateGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
6
17{
21 protected $ctrl;
22
26 protected $tpl;
27
31 protected $tabs;
32
36 protected $lng;
37
38
42 public function __construct($a_node_id = 0)
43 {
44 global $DIC;
45
46 $this->ctrl = $DIC->ctrl();
47 $this->tpl = $DIC["tpl"];
48 $this->tabs = $DIC->tabs();
49 $this->lng = $DIC->language();
50 $ilCtrl = $DIC->ctrl();
51
52 $ilCtrl->saveParameter($this, "obj_id");
53
54 parent::__construct($a_node_id);
55 }
56
60 public function getType()
61 {
62 return "stmp";
63 }
64
68 public function executeCommand()
69 {
72 $ilTabs = $this->tabs;
73
74 //$tpl->getStandardTemplate();
75
76 $next_class = $ilCtrl->getNextClass($this);
77 $cmd = $ilCtrl->getCmd();
78
79 switch ($next_class) {
80 default:
81 $ret = $this->$cmd();
82 break;
83 }
84 }
85
89 public function setTabs()
90 {
91 $ilTabs = $this->tabs;
95
96 $tpl->setTitleIcon(ilUtil::getImagePath("icon_skmg.svg"));
97 $tpl->setTitle(
98 $lng->txt("skmg_skill_template") . ": " . $this->node_object->getTitle()
99 );
100 }
101
102
106 public function proceedDragDrop()
107 {
109
110 // $this->slm_object->executeDragDrop($_POST["il_hform_source_id"], $_POST["il_hform_target_id"],
111// $_POST["il_hform_fc"], $_POST["il_hform_as_subitem"]);
112// $ilCtrl->redirect($this, "showOrganization");
113 }
114}
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 $ilCtrl
Definition: ilias.php:18
$ret
Definition: parser.php:6
global $DIC
Definition: saml.php:7