5include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
 
    6include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
 
   30                $ilCtrl->saveParameter($this, array(
"obj_id", 
"level_id"));
 
   31                $this->base_skill_id = $a_node_id;
 
   33                parent::ilSkillTreeNodeGUI($a_node_id);
 
   51                $tpl->getStandardTemplate();
 
   53                $next_class = 
$ilCtrl->getNextClass($this);
 
   57                        case "ilcertificategui":
 
   59                                $ilTabs->activateTab(
"level_certificate");
 
   60                                include_once 
"./Services/Certificate/classes/class.ilCertificateGUI.php";
 
   61                                include_once(
"./Services/Skill/classes/class.ilSkillCertificateAdapter.php");
 
   83                $tpl->setContent(
"Properties");
 
  110                $it->setTitle($this->form->getInput(
"title"));
 
  111                $it->setOrderNr($this->form->getInput(
"order_nr"));
 
  112                $it->setStatus($this->form->getInput(
"status"));
 
  113                $it->setSelfEvaluation(
$_POST[
"self_eval"]);
 
  116                $this->node_object = $it;
 
  126                $ilCtrl->setParameterByClass(
"ilbasicskillgui", 
"obj_id",
 
  127                        $this->node_object->getId());
 
  128                $ilCtrl->redirectByClass(
"ilbasicskillgui", 
"edit");
 
  141                $this->node_object->setTitle($this->form->getInput(
"title"));
 
  142                $this->node_object->setOrderNr($this->form->getInput(
"order_nr"));
 
  143                $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
 
  144                $this->node_object->setStatus(
$_POST[
"status"]);
 
  145                $this->node_object->update();
 
  159                        $ilToolbar->addButton(
$lng->txt(
"skmg_add_level"),
 
  160                                $ilCtrl->getLinkTarget($this, 
"addLevel"));
 
  163                include_once(
"./Services/Skill/classes/class.ilSkillLevelTableGUI.php");
 
  165                $tpl->setContent($table->getHTML());
 
  177                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  182                $ti->setMaxLength(200);
 
  184                $ti->setRequired(
true);
 
  185                $this->form->addItem($ti);
 
  189                $ni->setMaxLength(6);
 
  191                $ni->setRequired(
true);
 
  192                $this->form->addItem($ni);
 
  199                $cb->setInfo(
$lng->txt(
"skmg_selectable_info"));
 
  200                $this->form->addItem($cb);
 
  205                        if ($a_mode == 
"create")
 
  207                                $this->form->addCommandButton(
"save", 
$lng->txt(
"save"));
 
  208                                $this->form->addCommandButton(
"cancelSave", 
$lng->txt(
"cancel"));
 
  209                                $this->form->setTitle(
$lng->txt(
"skmg_create_skll"));
 
  212                                $this->form->addCommandButton(
"update", 
$lng->txt(
"save"));
 
  213                                $this->form->setTitle(
$lng->txt(
"skmg_edit_skll"));
 
  217                $ilCtrl->setParameter($this, 
"obj_id", 
$_GET[
"obj_id"]);
 
  218                $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
  227                parent::editProperties();
 
  245                $tpl->setContent($this->form->getHTML());
 
  257                $tpl->setContent($this->form->getHTML());
 
  273                if ($this->form->checkInput())
 
  276                        $this->node_object->addLevel(
 
  277                                $this->form->getInput(
"title"),
 
  278                                $this->form->getInput(
"description"));
 
  281                        $ilCtrl->redirect($this, 
"edit");
 
  284                $this->form->setValuesByPost();
 
  285                $tpl->setContent($this->form->getHtml());
 
  301                if ($this->form->checkInput())
 
  303                        $this->node_object->writeLevelTitle(
 
  304                                        (
int) 
$_GET[
"level_id"],
 
  305                                        $this->form->getInput(
"title"));
 
  306                        $this->node_object->writeLevelDescription(
 
  307                                        (
int) 
$_GET[
"level_id"],
 
  308                                        $this->form->getInput(
"description"));
 
  311                        $ilCtrl->redirect($this, 
"edit");
 
  314                $this->form->setValuesByPost();
 
  315                $tpl->setContent($this->form->getHtml());
 
  327                $ilCtrl->saveParameter($this, 
"level_id");
 
  329                $ilTabs->activateTab(
"level_settings");
 
  331                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  336                $ti->setMaxLength(200);
 
  337                $ti->setRequired(
true);
 
  338                $this->form->addItem($ti);
 
  344                $this->form->addItem($ta);
 
  349                        if ($a_mode == 
"create")
 
  351                                $this->form->addCommandButton(
"saveLevel", 
$lng->txt(
"save"));
 
  352                                $this->form->addCommandButton(
"edit", 
$lng->txt(
"cancel"));
 
  353                                $this->form->setTitle(
$lng->txt(
"skmg_new_level"));
 
  356                                $this->form->addCommandButton(
"updateLevel", 
$lng->txt(
"save"));
 
  357                                $this->form->addCommandButton(
"edit", 
$lng->txt(
"cancel"));
 
  358                                $this->form->setTitle(
$lng->txt(
"skmg_edit_level"));
 
  362                $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
  372                $data = $this->node_object->getLevelData((
int) 
$_GET[
"level_id"]);
 
  373                $values[
"title"] = 
$data[
"title"];
 
  374                $values[
"description"] = 
$data[
"description"];
 
  375                $this->form->setValuesByArray($values);
 
  391                $this->node_object->updateLevelOrder($order);
 
  393                $ilCtrl->redirect($this, 
"edit");
 
  410                if (!is_array(
$_POST[
"id"]) || count(
$_POST[
"id"]) == 0)
 
  413                        $ilCtrl->redirect($this, 
"edit");
 
  417                        include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  419                        $cgui->setFormAction(
$ilCtrl->getFormAction($this));
 
  420                        $cgui->setHeaderText(
$lng->txt(
"skmg_really_delete_levels"));
 
  421                        $cgui->setCancel(
$lng->txt(
"cancel"), 
"edit");
 
  422                        $cgui->setConfirm(
$lng->txt(
"delete"), 
"deleteLevel");
 
  424                        foreach (
$_POST[
"id"] as $i)
 
  429                        $tpl->setContent($cgui->getHTML());
 
  445                if (is_array(
$_POST[
"id"]))
 
  447                        foreach (
$_POST[
"id"] as $id)
 
  449                                $this->node_object->deleteLevel((
int) $id);
 
  451                        $this->node_object->fixLevelNumbering();
 
  454                $ilCtrl->redirect($this, 
"edit");
 
  465                $ilTabs->clearTargets();
 
  466                $ilHelp->setScreenIdComponent(
"skmg_lev");
 
  468                $ilTabs->setBackTarget(
$lng->txt(
"back"),
 
  469                        $ilCtrl->getLinkTarget($this, 
"edit"));
 
  471                if (
$_GET[
"level_id"] > 0)
 
  473                        $ilTabs->addTab(
"level_settings",
 
  474                                $lng->txt(
"settings"),
 
  475                                $ilCtrl->getLinkTarget($this, 
"editLevel"));
 
  481                        $ilTabs->addTab(
"level_resources",
 
  482                                $lng->txt(
"skmg_resources"),
 
  483                                $ilCtrl->getLinkTarget($this, 
"showLevelResources"));
 
  492                if (
$_GET[
"level_id"] > 0)
 
  494                        $tpl->setTitle(
$lng->txt(
"skmg_skill_level").
": ".
 
  499                        $tpl->setTitle(
$lng->txt(
"skmg_skill_level"));                  
 
  502                include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
 
  504                $path = $tree->getPathFull($this->node_object->getId());
 
  506                foreach (
$path as $p)
 
  508                        if (in_array($p[
"type"], array(
"scat", 
"skll")))
 
  510                                $desc.= $sep.$p[
"title"];
 
  514                $tpl->setDescription($desc);
 
  526                $ilTabs->clearTargets();
 
  527                $ilHelp->setScreenIdComponent(
"skmg_skll");
 
  531                if (is_object($this->node_object))
 
  535                        $ilTabs->addTab(
"levels", 
$lng->txt(
"skmg_skill_levels"),
 
  536                                $ilCtrl->getLinkTarget($this, 
'edit'));
 
  539                        $ilTabs->addTab(
"properties", 
$lng->txt(
"settings"),
 
  540                                $ilCtrl->getLinkTarget($this, 
'editProperties'));
 
  545                        $ilCtrl->setParameterByClass(
"ilskillrootgui", 
"obj_id",
 
  546                                $this->node_object->skill_tree->getRootId());
 
  547                        $ilTabs->setBackTarget(
$lng->txt(
"obj_skmg"),
 
  548                                $ilCtrl->getLinkTargetByClass(
"ilskillrootgui", 
"listSkills"));
 
  549                        $ilCtrl->setParameterByClass(
"ilskillrootgui", 
"obj_id",
 
  552                        $ilTabs->activateTab($a_tab);
 
  554                        $tpl->setTitle(
$lng->txt(
"skmg_skill").
": ".
 
  555                                $this->node_object->getTitle());
 
  561                        $tpl->setTitle(
$lng->txt(
"skmg_skill"));
 
  562                        $tpl->setDescription(
"");
 
  564                parent::setTitleIcon();
 
  575                $ilTabs->activateTab(
"level_trigger");
 
  584                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  589                if ($trigger[
"obj_id"] > 0)
 
  595                        $ne->setValue(
$lng->txt(
"skmg_no_trigger"));
 
  597                $this->form->addItem($ne);
 
  599                if ($trigger[
"obj_id"] > 0)
 
  601                        $this->form->addCommandButton(
"removeLevelTrigger", 
$lng->txt(
"skmg_remove_trigger"));
 
  603                $this->form->addCommandButton(
"selectLevelTrigger", 
$lng->txt(
"skmg_select_trigger"));
 
  605                $this->form->setTitle(
$lng->txt(
"skmg_skill_level_trigger"));
 
  606                $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
  608                $tpl->setContent($this->form->getHTML());
 
  624                $ilTabs->activateTab(
"level_trigger");
 
  626                include_once 
'Services/Search/classes/class.ilSearchRootSelector.php';
 
  628                        $ilCtrl->getLinkTarget($this,
'showRepositorySelection'));
 
  629                $exp->setExpand(
$_GET[
"search_root_expand"] ? 
$_GET[
"search_root_expand"] : $tree->readRootId());
 
  630                $exp->setExpandTarget(
$ilCtrl->getLinkTarget($this,
'selectLevelTrigger'));
 
  631                $exp->setTargetClass(get_class($this));
 
  632                $exp->setCmd(
'saveLevelTrigger');
 
  633                $exp->setClickableTypes(array(
"crs"));
 
  637                $tpl->setContent($exp->getOutput());
 
  654                $ilCtrl->redirect($this, 
"editLevelTrigger");
 
  665                $ilCtrl->redirect($this, 
"editLevelTrigger");
 
  680                                $ilCtrl->setParameterByClass(
"ilskillrootgui", 
"obj_id", (
int) 
$_GET[
"obj_id"]);
 
  681                                $ilCtrl->redirectByClass(
"ilskillrootgui", 
"listSkills");
 
  685                parent::redirectToParent();
 
  702                        $ilToolbar->addButton(
 
  703                                $lng->txt(
"skmg_add_resource"),
 
  704                                $ilCtrl->getLinkTarget($this, 
"addLevelResource"));
 
  708                $ilTabs->activateTab(
"level_resources");
 
  710                include_once(
"./Services/Skill/classes/class.ilSkillLevelResourcesTableGUI.php");
 
  712                        $this->base_skill_id, $this->tref_id, (
int) 
$_GET[
"level_id"]);
 
  725                $ilTabs->activateTab(
"level_resources");
 
  727                include_once(
"./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
 
  729                        $this, 
"saveLevelResource", 
"root_id");
 
  730                if (!$exp->handleCommand())
 
  732                        $tpl->setContent($exp->getHTML());
 
  752                        include_once(
"./Services/Skill/classes/class.ilSkillResources.php");
 
  754                        $sres->setResourceAsImparting((
int) 
$_GET[
"level_id"], 
$ref_id);
 
  760                $ilCtrl->redirect($this, 
"showLevelResources");
 
  776                $ilTabs->activateTab(
"level_resources");
 
  778                if (!is_array(
$_POST[
"id"]) || count(
$_POST[
"id"]) == 0)
 
  781                        $ilCtrl->redirect($this, 
"showLevelResources");
 
  785                        include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  787                        $cgui->setFormAction(
$ilCtrl->getFormAction($this));
 
  788                        $cgui->setHeaderText(
$lng->txt(
"skmg_confirm_level_resources_removal"));
 
  789                        $cgui->setCancel(
$lng->txt(
"cancel"), 
"showLevelResources");
 
  790                        $cgui->setConfirm(
$lng->txt(
"remove"), 
"removeLevelResources");
 
  792                        foreach (
$_POST[
"id"] as $i)
 
  795                                $cgui->addItem(
"id[]", $i, $title);
 
  798                        $tpl->setContent($cgui->getHTML());
 
  814                if (is_array(
$_POST[
"id"]))
 
  816                        include_once(
"./Services/Skill/classes/class.ilSkillResources.php");
 
  818                        foreach (
$_POST[
"id"] as $i)
 
  820                                $sres->setResourceAsImparting((
int) 
$_GET[
"level_id"], $i, 
false);
 
  826                $ilCtrl->redirect($this, 
"showLevelResources");
 
removeLevelTrigger()
Remove trigger.
updateLevel()
Update level form.
confirmLevelDeletion()
Confirm level deletion.
selectLevelTrigger()
Select skill level trigger.
initLevelForm($a_mode="edit")
Init level form.
getLevelValues()
Get current values for level from.
initForm($a_mode="edit")
Init form.
removeLevelResources()
Remove level resource.
redirectToParent()
Redirect to parent (identified by current obj_id)
setLevelHead()
Set header for level.
setTabs($a_tab="levels")
Set header for skill.
confirmLevelResourcesRemoval()
Confirm level resources removal.
addLevelResource()
Add level resource.
executeCommand()
Execute command.
saveLevel()
Save level form.
saveLevelResource()
Save level resource.
deleteLevel()
Delete levels.
showProperties()
Show properties.
updateLevelOrder()
Update level order.
proceedDragDrop()
Perform drag and drop action.
saveLevelTrigger()
Save level trigger.
editProperties()
Edit properties.
showLevelResources()
Show level resources.
editLevelTrigger()
Edit level trigger.
__construct($a_node_id=0)
Constructor.
static writeLevelTrigger($a_id, $a_trigger_ref_id)
Write trigger.
static lookupLevelTitle($a_id)
Lookup level title.
static lookupLevelTrigger($a_id)
Lookup level trigger.
GUI class to create PDF certificates.
Confirmation screen class.
This class represents a non editable value in a property form.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
_isInTrash($a_ref_id)
checks wether object is in trash
static _lookupType($a_id, $a_reference=false)
lookup object type
Explorer for selecting repository items.
Skill certificate adapter.
TableGUI class for skill level resources.
Manages resources for skills.
Basic GUI class for skill tree nodes.
setSkillNodeDescription()
Set skill node description.
addUsageTab($a_tabs)
Add usage tab.
addStatusInput(ilPropertyFormGUI $a_form)
Add status input.
checkPermissionBool($a_perm)
Check permission pool.
setLocator()
Set Locator Items.
static putInTree($a_obj, $a_parent_id="", $a_target_node_id="")
Put this object into the skill tree.
static _lookupType($a_obj_id)
Lookup Type.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static stripSlashesArray($a_arr, $a_strip_html=true, $a_allow="")
Strip slashes from array.