ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSkillTemplateCategoryGUI Class Reference

Skill template category GUI class. More...

+ Inheritance diagram for ilSkillTemplateCategoryGUI:
+ Collaboration diagram for ilSkillTemplateCategoryGUI:

Public Member Functions

 __construct ($a_node_id=0)
 Constructor.
 getType ()
 Get Node Type.
executeCommand ()
 Execute command.
 setTabs ($a_tab)
 output tabs
 listItems ()
 List items.
 editProperties ()
 Edit properties.
 saveItem ()
 Save item.
 updateItem ()
 Update item.
 afterSave ()
 After saving.
- 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.
 cancelDelete ()
 cancel delete
 confirmedDelete ()
 confirmed delete
 setLocator ()
 Set Locator Items.
 setSkillNodeDescription ()
 Set skill node description.
 create ()
 Create skill tree node.
 getPropertyValues ()
 Get property values for edit form.
 save ()
 Save skill tree node.
 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.

Static Public Member Functions

static addCreationButtons ()
 Add creation buttons.

Additional Inherited Members

- Data Fields inherited from ilSkillTreeNodeGUI
 $node_object

Detailed Description

Skill template category GUI class.

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

ilSkillTemplateCategoryGUI: ilObjSkillManagementGUI

Definition at line 17 of file class.ilSkillTemplateCategoryGUI.php.

Constructor & Destructor Documentation

ilSkillTemplateCategoryGUI::__construct (   $a_node_id = 0)

Constructor.

Definition at line 23 of file class.ilSkillTemplateCategoryGUI.php.

References $ilCtrl, and ilSkillTreeNodeGUI\ilSkillTreeNodeGUI().

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

+ Here is the call graph for this function:

Member Function Documentation

static ilSkillTemplateCategoryGUI::addCreationButtons ( )
static

Add creation buttons.

Parameters
@return

Definition at line 120 of file class.ilSkillTemplateCategoryGUI.php.

References $_GET, $ilCtrl, and $lng.

Referenced by listItems(), and ilSkillRootGUI\listTemplates().

{
global $ilCtrl, $lng, $ilToolbar, $ilUser;
$ilCtrl->setParameterByClass("ilobjskillmanagementgui", "tmpmode", 1);
$ilCtrl->setParameterByClass("ilbasicskilltemplategui",
"obj_id", (int) $_GET["obj_id"]);
$ilToolbar->addButton($lng->txt("skmg_create_skill_template"),
$ilCtrl->getLinkTargetByClass("ilbasicskilltemplategui", "create"));
$ilCtrl->setParameterByClass("ilskilltemplatecategorygui",
"obj_id", (int) $_GET["obj_id"]);
$ilToolbar->addButton($lng->txt("skmg_create_skill_template_category"),
$ilCtrl->getLinkTargetByClass("ilskilltemplatecategorygui", "create"));
// skill templates from clipboard
$sep = false;
if ($ilUser->clipboardHasObjectsOfType("sktp"))
{
$ilToolbar->addSeparator();
$sep = true;
$ilToolbar->addButton($lng->txt("skmg_insert_skill_template_from_clip"),
$ilCtrl->getLinkTargetByClass("ilskilltemplatecategorygui", "insertSkillTemplateClip"));
}
// template categories from clipboard
if ($ilUser->clipboardHasObjectsOfType("sctp"))
{
if (!$sep)
{
$ilToolbar->addSeparator();
$sep = true;
}
$ilToolbar->addButton($lng->txt("skmg_insert_template_category_from_clip"),
$ilCtrl->getLinkTargetByClass("ilskilltemplatecategorygui", "insertTemplateCategoryClip"));
}
}

+ Here is the caller graph for this function:

ilSkillTemplateCategoryGUI::afterSave ( )

After saving.

Reimplemented from ilSkillTreeNodeGUI.

Definition at line 195 of file class.ilSkillTemplateCategoryGUI.php.

References ilSkillTreeNodeGUI\redirectToParent().

{
$this->redirectToParent(true);
}

+ Here is the call graph for this function:

ilSkillTemplateCategoryGUI::editProperties ( )

Edit properties.

Reimplemented from ilSkillTreeNodeGUI.

Definition at line 162 of file class.ilSkillTemplateCategoryGUI.php.

References setTabs().

{
$this->setTabs("properties");
}

+ Here is the call graph for this function:

& ilSkillTemplateCategoryGUI::executeCommand ( )

Execute command.

Definition at line 43 of file class.ilSkillTemplateCategoryGUI.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;
}
}
ilSkillTemplateCategoryGUI::getType ( )

Get Node Type.

Definition at line 35 of file class.ilSkillTemplateCategoryGUI.php.

{
return "sctp";
}
ilSkillTemplateCategoryGUI::listItems ( )

List items.

Parameters
@return

Definition at line 100 of file class.ilSkillTemplateCategoryGUI.php.

References $_GET, $tpl, addCreationButtons(), ilSkillCatTableGUI\MODE_SCTP, and setTabs().

{
global $tpl;
$this->setTabs("content");
include_once("./Services/Skill//classes/class.ilSkillCatTableGUI.php");
$table = new ilSkillCatTableGUI($this, "listItems", (int) $_GET["obj_id"],
$tpl->setContent($table->getHTML());
}

+ Here is the call graph for this function:

ilSkillTemplateCategoryGUI::saveItem ( )

Save item.

Definition at line 172 of file class.ilSkillTemplateCategoryGUI.php.

References $_GET, IL_LAST_NODE, and ilSkillTreeNode\putInTree().

{
$it->setTitle($this->form->getInput("title"));
$it->setOrderNr($this->form->getInput("order_nr"));
$it->create();
}

+ Here is the call graph for this function:

ilSkillTemplateCategoryGUI::setTabs (   $a_tab)

output tabs

Definition at line 63 of file class.ilSkillTemplateCategoryGUI.php.

References $_GET, $ilCtrl, $lng, $tpl, ilSkillTreeNodeGUI\setSkillNodeDescription(), and ilSkillTreeNodeGUI\setTitleIcon().

Referenced by editProperties(), and listItems().

{
global $ilTabs, $ilCtrl, $tpl, $lng;
$ilTabs->clearTargets();
// content
$ilTabs->addTab("content", $lng->txt("content"),
$ilCtrl->getLinkTarget($this, 'listItems'));
// properties
$ilTabs->addTab("properties", $lng->txt("settings"),
$ilCtrl->getLinkTarget($this, 'editProperties'));
// back link
$ilCtrl->setParameterByClass("ilskillrootgui", "obj_id",
$this->node_object->skill_tree->getRootId());
$ilTabs->setBackTarget($lng->txt("obj_skmg"),
$ilCtrl->getLinkTargetByClass("ilskillrootgui", "listTemplates"));
$ilCtrl->setParameterByClass("ilskillrootgui", "obj_id",
$_GET["obj_id"]);
$tpl->setTitle(
$lng->txt("skmg_sctp").": ".$this->node_object->getTitle());
$ilTabs->activateTab($a_tab);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSkillTemplateCategoryGUI::updateItem ( )

Update item.

Definition at line 184 of file class.ilSkillTemplateCategoryGUI.php.

References $_POST.

{
$this->node_object->setTitle($this->form->getInput("title"));
$this->node_object->setOrderNr($this->form->getInput("order_nr"));
$this->node_object->setSelfEvaluation($_POST["self_eval"]);
$this->node_object->update();
}

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