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

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

ilSkillRootGUI::__construct (   $a_node_id = 0)

Constructor.

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

References $ilCtrl, and ilSkillTreeNodeGUI\ilSkillTreeNodeGUI().

{
global $ilCtrl;
$ilCtrl->saveParameter($this, "obj_id");
}

+ Here is the call graph for this function:

Member Function Documentation

ilSkillRootGUI::cancelDelete ( )

cancel delete

Reimplemented from ilSkillTreeNodeGUI.

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

References $_GET, and $ilCtrl.

{
global $ilCtrl;
if ($_GET["tmpmode"])
{
$ilCtrl->redirect($this, "listTemplates");
}
else
{
$ilCtrl->redirect($this, "listSkills");
}
}
& ilSkillRootGUI::executeCommand ( )

Execute command.

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

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

{
global $ilCtrl, $tpl, $ilTabs;
$tpl->getStandardTemplate();
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
switch($next_class)
{
default:
$ret = $this->$cmd();
break;
}
}
ilSkillRootGUI::getType ( )

Get Node Type.

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

{
return "skrt";
}
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().

{
global $tpl, $ilToolbar, $ilCtrl, $lng, $ilTabs;
$skmg_set = new ilSetting("skmg");
$enable_skmg = $skmg_set->get("enable_skmg");
if (!$enable_skmg)
{
ilUtil::sendInfo($lng->txt("skmg_skill_management_deactivated"));
}
$this->getParentGUI()->showTree(false, $this, "listSkills");
$ilTabs->activateTab("skills");
include_once("./Services/Skill/classes/class.ilSkillCategoryGUI.php");
include_once("./Services/Skill/classes/class.ilSkillCatTableGUI.php");
$table = new ilSkillCatTableGUI($this, "listSkills", (int) $_GET["obj_id"],
$tpl->setContent($table->getHTML());
}

+ Here is the call graph for this function:

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().

{
global $tpl, $ilToolbar, $ilCtrl, $lng, $ilTabs;
$skmg_set = new ilSetting("skmg");
$enable_skmg = $skmg_set->get("enable_skmg");
if (!$enable_skmg)
{
ilUtil::sendInfo($lng->txt("skmg_skill_management_deactivated"));
}
$this->getParentGUI()->showTree(true, $this, "listTemplates");
$ilTabs->activateTab("skill_templates");
include_once("./Services/Skill/classes/class.ilSkillTemplateCategoryGUI.php");
include_once("./Services/Skill/classes/class.ilSkillCatTableGUI.php");
$table = new ilSkillCatTableGUI($this, "listTemplates", (int) $_GET["obj_id"],
$tpl->setContent($table->getHTML());
}

+ Here is the call graph for this function:


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