ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSkillRootGUI Class Reference

Skill root GUI class. More...

+ Inheritance diagram for ilSkillRootGUI:
+ Collaboration diagram for ilSkillRootGUI:

Public Member Functions

 __construct ($a_node_id=0)
 Constructor. More...
 
 getType ()
 Get Node Type. More...
 
executeCommand ()
 Execute command. More...
 
 listTemplates ()
 List templates. More...
 
 listSkills ()
 List skills. More...
 
 cancelDelete ()
 cancel delete More...
 
- Public Member Functions inherited from ilSkillTreeNodeGUI
 ilSkillTreeNodeGUI ($a_node_id=0)
 constructor More...
 
 setParentGUI ($a_parentgui)
 Set Parent GUI class. More...
 
 getParentGUI ()
 Get Parent GUI class (ilObjSCORM2004LearningModuleGUI). More...
 
 readNodeObject ($a_node_id)
 Get node object instance. More...
 
 saveAllTitles ()
 Save Titles. More...
 
 deleteNodes ()
 Delete nodes in the hierarchy. More...
 
 cutItems ()
 Copy items to clipboard, then cut them from the current tree. More...
 
 copyItems ()
 Copy items to clipboard. More...
 
 cancelDelete ()
 cancel delete More...
 
 confirmedDelete ()
 confirmed delete More...
 
 setLocator ()
 Set Locator Items. More...
 
 setSkillNodeDescription ()
 Set skill node description. More...
 
 create ()
 Create skill tree node. More...
 
 addStatusInput (ilPropertyFormGUI $a_form)
 Add status input. More...
 
 editProperties ()
 Edit properties form. More...
 
 getPropertyValues ()
 Get property values for edit form. More...
 
 save ()
 Save skill tree node. More...
 
 afterSave ()
 After saving. More...
 
 update ()
 Update skill tree node. More...
 
 afterUpdate ()
 After update. More...
 
 initForm ($a_mode="edit")
 Init form. More...
 
 cancelSave ()
 Cancel saving. More...
 
 redirectToParent ($a_tmp_mode=false)
 Redirect to parent (identified by current obj_id) More...
 
 saveOrder ()
 Save order. More...
 
 insertBasicSkillClip ()
 Insert basic skills from clipboard. More...
 
 insertSkillCategoryClip ()
 Insert skill categories from clipboard. More...
 
 insertTemplateReferenceClip ()
 Insert skill template references from clipboard. More...
 
 insertSkillTemplateClip ()
 Insert skill template from clipboard. More...
 
 insertTemplateCategoryClip ()
 Insert skill template category from clipboard. More...
 
 setTitleIcon ()
 Set title icon. More...
 
 addUsageTab ($a_tabs)
 Add usage tab. More...
 
 showUsage ()
 Show skill usage. More...
 

Additional Inherited Members

- Data Fields inherited from ilSkillTreeNodeGUI
 $node_object
 

Detailed Description

Skill root GUI class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

ilSkillRootGUI: ilObjSkillManagementGUI

Definition at line 16 of file class.ilSkillRootGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSkillRootGUI::__construct (   $a_node_id = 0)

Constructor.

Definition at line 22 of file class.ilSkillRootGUI.php.

References $ilCtrl.

23  {
24  global $ilCtrl;
25 
26  $ilCtrl->saveParameter($this, "obj_id");
27 
28  parent::ilSkillTreeNodeGUI($a_node_id);
29  }
global $ilCtrl
Definition: ilias.php:18

Member Function Documentation

◆ cancelDelete()

ilSkillRootGUI::cancelDelete ( )

cancel delete

Definition at line 116 of file class.ilSkillRootGUI.php.

References $_GET, and $ilCtrl.

117  {
118  global $ilCtrl;
119  if ($_GET["tmpmode"])
120  {
121  $ilCtrl->redirect($this, "listTemplates");
122  }
123  else
124  {
125  $ilCtrl->redirect($this, "listSkills");
126  }
127  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18

◆ executeCommand()

& ilSkillRootGUI::executeCommand ( )

Execute command.

Definition at line 42 of file class.ilSkillRootGUI.php.

References $cmd, $ilCtrl, $ret, and $tpl.

43  {
44  global $ilCtrl, $tpl, $ilTabs;
45 
46  $tpl->getStandardTemplate();
47 
48  $next_class = $ilCtrl->getNextClass($this);
49  $cmd = $ilCtrl->getCmd();
50 
51  switch($next_class)
52  {
53  default:
54  $ret = $this->$cmd();
55  break;
56  }
57  }
$cmd
Definition: sahs_server.php:35
global $tpl
Definition: ilias.php:8
global $ilCtrl
Definition: ilias.php:18

◆ getType()

ilSkillRootGUI::getType ( )

Get Node Type.

Definition at line 34 of file class.ilSkillRootGUI.php.

35  {
36  return "skrt";
37  }

◆ listSkills()

ilSkillRootGUI::listSkills ( )

List skills.

Definition at line 89 of file class.ilSkillRootGUI.php.

References $_GET, $ilCtrl, $lng, $tpl, ilSkillCategoryGUI\addCreationButtons(), ilSkillTreeNodeGUI\getParentGUI(), ilSkillCatTableGUI\MODE_SCAT, and ilUtil\sendInfo().

90  {
91  global $tpl, $ilToolbar, $ilCtrl, $lng, $ilTabs;
92 
93  $skmg_set = new ilSetting("skmg");
94  $enable_skmg = $skmg_set->get("enable_skmg");
95  if (!$enable_skmg)
96  {
97  ilUtil::sendInfo($lng->txt("skmg_skill_management_deactivated"));
98  }
99 
100  $this->getParentGUI()->showTree(false, $this, "listSkills");
101  $ilTabs->activateTab("skills");
102 
103  include_once("./Services/Skill/classes/class.ilSkillCategoryGUI.php");
105 
106  include_once("./Services/Skill/classes/class.ilSkillCatTableGUI.php");
107  $table = new ilSkillCatTableGUI($this, "listSkills", (int) $_GET["obj_id"],
109 
110  $tpl->setContent($table->getHTML());
111  }
ILIAS Setting Class.
static addCreationButtons()
Add creation buttons.
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $tpl
Definition: ilias.php:8
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ listTemplates()

ilSkillRootGUI::listTemplates ( )

List templates.

Definition at line 62 of file class.ilSkillRootGUI.php.

References $_GET, $ilCtrl, $lng, $tpl, ilSkillTemplateCategoryGUI\addCreationButtons(), ilSkillTreeNodeGUI\getParentGUI(), ilSkillCatTableGUI\MODE_SCTP, and ilUtil\sendInfo().

63  {
64  global $tpl, $ilToolbar, $ilCtrl, $lng, $ilTabs;
65 
66  $skmg_set = new ilSetting("skmg");
67  $enable_skmg = $skmg_set->get("enable_skmg");
68  if (!$enable_skmg)
69  {
70  ilUtil::sendInfo($lng->txt("skmg_skill_management_deactivated"));
71  }
72 
73  $this->getParentGUI()->showTree(true, $this, "listTemplates");
74  $ilTabs->activateTab("skill_templates");
75 
76  include_once("./Services/Skill/classes/class.ilSkillTemplateCategoryGUI.php");
78 
79  include_once("./Services/Skill/classes/class.ilSkillCatTableGUI.php");
80  $table = new ilSkillCatTableGUI($this, "listTemplates", (int) $_GET["obj_id"],
82 
83  $tpl->setContent($table->getHTML());
84  }
ILIAS Setting Class.
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $tpl
Definition: ilias.php:8
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static addCreationButtons()
Add creation buttons.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: