ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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...
 
 checkPermissionBool ($a_perm)
 Check permission pool. 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
 
 $access
 
 $ref_id
 

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 122 of file class.ilSkillRootGUI.php.

References $_GET, and $ilCtrl.

123  {
124  global $ilCtrl;
125 
126  if ($_GET["tmpmode"])
127  {
128  $ilCtrl->redirect($this, "listTemplates");
129  }
130  else
131  {
132  $ilCtrl->redirect($this, "listSkills");
133  }
134  }
$_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 92 of file class.ilSkillRootGUI.php.

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

93  {
94  global $tpl, $ilToolbar, $ilCtrl, $lng, $ilTabs;
95 
96  $skmg_set = new ilSetting("skmg");
97  $enable_skmg = $skmg_set->get("enable_skmg");
98  if (!$enable_skmg)
99  {
100  ilUtil::sendInfo($lng->txt("skmg_skill_management_deactivated"));
101  }
102 
103  $this->getParentGUI()->showTree(false, $this, "listSkills");
104  $ilTabs->activateTab("skills");
105 
106  include_once("./Services/Skill/classes/class.ilSkillCategoryGUI.php");
107  if ($this->checkPermissionBool("write"))
108  {
110  }
111 
112  include_once("./Services/Skill/classes/class.ilSkillCatTableGUI.php");
113  $table = new ilSkillCatTableGUI($this, "listSkills", (int) $_GET["obj_id"],
115 
116  $tpl->setContent($table->getHTML());
117  }
ILIAS Setting Class.
static addCreationButtons()
Add creation buttons.
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $tpl
Definition: ilias.php:8
checkPermissionBool($a_perm)
Check permission pool.
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\checkPermissionBool(), 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");
77  if ($this->checkPermissionBool("write"))
78  {
80  }
81 
82  include_once("./Services/Skill/classes/class.ilSkillCatTableGUI.php");
83  $table = new ilSkillCatTableGUI($this, "listTemplates", (int) $_GET["obj_id"],
85 
86  $tpl->setContent($table->getHTML());
87  }
ILIAS Setting Class.
$_GET["client_id"]
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
global $tpl
Definition: ilias.php:8
checkPermissionBool($a_perm)
Check permission pool.
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: