ILIAS
release_8 Revision v8.19
|
Basic GUI class for skill tree nodes. More...
Public Member Functions | |
__construct (Tree\SkillTreeNodeManager $node_manager, int $a_node_id=0) | |
isInUse () | |
setParentGUI (object $a_parentgui) | |
getParentGUI () | |
readNodeObject (int $a_node_id) | |
Get node object instance. More... | |
saveAllTitles () | |
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 () | |
confirmedDelete () | |
confirmed delete More... | |
setSkillNodeDescription () | |
create () | |
Create skill tree node. More... | |
addStatusInput (ilPropertyFormGUI $a_form) | |
editProperties () | |
getPropertyValues () | |
Get property values for edit form. More... | |
save () | |
Save skill tree node. More... | |
afterSave () | |
update () | |
Update skill tree node. More... | |
afterUpdate () | |
initForm (string $a_mode="edit") | |
cancelSave () | |
redirectToParent (bool $a_tmp_mode=false) | |
Redirect to parent (identified by current node_id) More... | |
saveOrder () | |
insertBasicSkillClip () | |
insertSkillCategoryClip () | |
insertTemplateReferenceClip () | |
insertSkillTemplateClip () | |
insertTemplateCategoryClip () | |
setTitleIcon () | |
addUsageTab (ilTabsGUI $a_tabs) | |
showUsage () | |
addObjectsTab (ilTabsGUI $a_tabs) | |
showObjects () | |
exportSelectedNodes () | |
Data Fields | |
object | $node_object = null |
bool | $in_use = false |
bool | $use_checked = false |
ilAccessHandler | $access |
Protected Attributes | |
ilCtrl | $ctrl |
ilLanguage | $lng |
ilLocatorGUI | $locator |
ilGlobalTemplateInterface | $tpl |
ilObjUser | $user |
ilTree | $tree |
ilPropertyFormGUI | $form |
object | $parentgui |
int | $tref_id = 0 |
Tree SkillTreeNodeManager | $skill_tree_node_manager |
SkillTreeAccess | $tree_access_manager |
ilSkillTreeRepository | $tree_repo |
int | $skill_tree_id = 0 |
ilTabsGUI | $tabs |
SkillAdminGUIRequest | $admin_gui_request |
int | $requested_ref_id = 0 |
int | $requested_node_id = 0 |
string | $requested_backcmd = "" |
int | $requested_tmpmode = 0 |
int | $base_skill_id = 0 |
array | $requested_node_ids = [] |
array | $requested_node_order = [] |
Basic GUI class for skill tree nodes.
Definition at line 29 of file class.ilSkillTreeNodeGUI.php.
ilSkillTreeNodeGUI::__construct | ( | Tree\SkillTreeNodeManager | $node_manager, |
int | $a_node_id = 0 |
||
) |
Definition at line 66 of file class.ilSkillTreeNodeGUI.php.
References $DIC, ilSkillTreeNode\_lookupType(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), readNodeObject(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
ilSkillTreeNodeGUI::addObjectsTab | ( | ilTabsGUI | $a_tabs | ) |
Definition at line 570 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, $lng, ilTabsGUI\addTab(), and ilLanguage\txt().
Referenced by ilSkillTemplateReferenceGUI\setTabs(), ilBasicSkillTemplateGUI\setTabs(), and ilBasicSkillGUI\setTabs().
ilSkillTreeNodeGUI::addStatusInput | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 284 of file class.ilSkillTreeNodeGUI.php.
References $lng, ilPropertyFormGUI\addItem(), ilSkillTreeNode\getAllStatus(), ilSkillTreeNode\getStatusInfo(), ilSkillTreeNode\STATUS_PUBLISH, and ilLanguage\txt().
Referenced by ilSkillCategoryGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), and ilBasicSkillGUI\initForm().
ilSkillTreeNodeGUI::addUsageTab | ( | ilTabsGUI | $a_tabs | ) |
Definition at line 537 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, $lng, ilTabsGUI\addTab(), and ilLanguage\txt().
Referenced by ilSkillCategoryGUI\setTabs(), ilSkillTemplateReferenceGUI\setTabs(), ilSkillTemplateCategoryGUI\setTabs(), ilBasicSkillTemplateGUI\setTabs(), and ilBasicSkillGUI\setTabs().
ilSkillTreeNodeGUI::afterSave | ( | ) |
Definition at line 358 of file class.ilSkillTreeNodeGUI.php.
References redirectToParent().
Referenced by save().
ilSkillTreeNodeGUI::afterUpdate | ( | ) |
Definition at line 389 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, and ilCtrl\redirect().
Referenced by update().
ilSkillTreeNodeGUI::cancelDelete | ( | ) |
Definition at line 230 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, and redirectToParent().
ilSkillTreeNodeGUI::cancelSave | ( | ) |
Definition at line 429 of file class.ilSkillTreeNodeGUI.php.
References redirectToParent().
ilSkillTreeNodeGUI::confirmedDelete | ( | ) |
confirmed delete
Definition at line 240 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, getParentGUI(), and redirectToParent().
ilSkillTreeNodeGUI::copyItems | ( | ) |
Copy items to clipboard.
Definition at line 200 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, $lng, $requested_node_ids, redirectToParent(), ilLanguage\txt(), and ilSkillTreeNode\uniqueTypesCheck().
ilSkillTreeNodeGUI::create | ( | ) |
Create skill tree node.
Definition at line 268 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, $lng, $tabs, $tpl, ILIAS\Repository\form(), initForm(), ilTabsGUI\setBackTarget(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
ilSkillTreeNodeGUI::cutItems | ( | ) |
Copy items to clipboard, then cut them from the current tree.
Definition at line 160 of file class.ilSkillTreeNodeGUI.php.
References $lng, $requested_node_ids, redirectToParent(), ilLanguage\txt(), and ilSkillTreeNode\uniqueTypesCheck().
ilSkillTreeNodeGUI::deleteNodes | ( | ) |
Delete nodes in the hierarchy.
Definition at line 149 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, getParentGUI(), and ilCtrl\setParameter().
ilSkillTreeNodeGUI::editProperties | ( | ) |
Definition at line 298 of file class.ilSkillTreeNodeGUI.php.
References $lng, $tpl, ILIAS\Repository\form(), getPropertyValues(), initForm(), isInUse(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
ilSkillTreeNodeGUI::exportSelectedNodes | ( | ) |
Definition at line 599 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, ilObject\_lookupObjId(), and redirectToParent().
ilSkillTreeNodeGUI::getParentGUI | ( | ) |
Definition at line 125 of file class.ilSkillTreeNodeGUI.php.
References $parentgui.
Referenced by confirmedDelete(), deleteNodes(), ilSkillRootGUI\listSkills(), ilSkillRootGUI\listTemplates(), and saveAllTitles().
ilSkillTreeNodeGUI::getPropertyValues | ( | ) |
Get property values for edit form.
Definition at line 315 of file class.ilSkillTreeNodeGUI.php.
References ILIAS\Repository\form().
Referenced by editProperties().
ilSkillTreeNodeGUI::initForm | ( | string | $a_mode = "edit" | ) |
Definition at line 396 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, $lng, ILIAS\Repository\form(), ilTextAreaInputGUI\setRows(), and ilLanguage\txt().
Referenced by create(), editProperties(), save(), and update().
ilSkillTreeNodeGUI::insertBasicSkillClip | ( | ) |
Definition at line 486 of file class.ilSkillTreeNodeGUI.php.
References redirectToParent().
ilSkillTreeNodeGUI::insertSkillCategoryClip | ( | ) |
Definition at line 492 of file class.ilSkillTreeNodeGUI.php.
References redirectToParent().
ilSkillTreeNodeGUI::insertSkillTemplateClip | ( | ) |
Definition at line 504 of file class.ilSkillTreeNodeGUI.php.
References redirectToParent().
ilSkillTreeNodeGUI::insertTemplateCategoryClip | ( | ) |
Definition at line 510 of file class.ilSkillTreeNodeGUI.php.
References redirectToParent().
ilSkillTreeNodeGUI::insertTemplateReferenceClip | ( | ) |
Definition at line 498 of file class.ilSkillTreeNodeGUI.php.
References redirectToParent().
ilSkillTreeNodeGUI::isInUse | ( | ) |
Definition at line 101 of file class.ilSkillTreeNodeGUI.php.
References $in_use, and ilSkillTreeNode\getAllCSkillIdsForNodeIds().
Referenced by ilBasicSkillGUI\edit(), ilBasicSkillTemplateGUI\edit(), ilBasicSkillGUI\editLevel(), editProperties(), ilSkillTemplateCategoryGUI\listItems(), ilSkillCategoryGUI\listItems(), and ilSkillTemplateReferenceGUI\listItems().
ilSkillTreeNodeGUI::readNodeObject | ( | int | $a_node_id | ) |
Get node object instance.
Definition at line 133 of file class.ilSkillTreeNodeGUI.php.
References ilSkillTreeNodeFactory\getInstance().
Referenced by __construct().
ilSkillTreeNodeGUI::redirectToParent | ( | bool | $a_tmp_mode = false | ) |
Redirect to parent (identified by current node_id)
Definition at line 437 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, and ilSkillTreeNode\_lookupType().
Referenced by afterSave(), cancelDelete(), cancelSave(), confirmedDelete(), copyItems(), cutItems(), exportSelectedNodes(), insertBasicSkillClip(), insertSkillCategoryClip(), insertSkillTemplateClip(), insertTemplateCategoryClip(), insertTemplateReferenceClip(), and saveOrder().
ilSkillTreeNodeGUI::save | ( | ) |
Save skill tree node.
Definition at line 332 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, $lng, $tpl, afterSave(), ILIAS\Repository\form(), initForm(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
ilSkillTreeNodeGUI::saveAllTitles | ( | ) |
Definition at line 138 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, and getParentGUI().
ilSkillTreeNodeGUI::saveOrder | ( | ) |
Definition at line 469 of file class.ilSkillTreeNodeGUI.php.
References $lng, redirectToParent(), and ilLanguage\txt().
ilSkillTreeNodeGUI::setParentGUI | ( | object | $a_parentgui | ) |
Definition at line 120 of file class.ilSkillTreeNodeGUI.php.
ilSkillTreeNodeGUI::setSkillNodeDescription | ( | ) |
Definition at line 258 of file class.ilSkillTreeNodeGUI.php.
References $tpl, $tref_id, and ilGlobalTemplateInterface\setDescription().
Referenced by ilSkillCategoryGUI\setTabs(), ilSkillTemplateReferenceGUI\setTabs(), ilSkillTemplateCategoryGUI\setTabs(), ilBasicSkillTemplateGUI\setTabs(), and ilBasicSkillGUI\setTabs().
ilSkillTreeNodeGUI::setTitleIcon | ( | ) |
Definition at line 516 of file class.ilSkillTreeNodeGUI.php.
References $tpl, ilSkillTreeNode\_lookupStatus(), ilSkillTreeNode\getIconPath(), ilGlobalTemplateInterface\setTitleIcon(), and ilSkillTreeNode\STATUS_DRAFT.
ilSkillTreeNodeGUI::showObjects | ( | ) |
Definition at line 582 of file class.ilSkillTreeNodeGUI.php.
References $tpl, and ilGlobalTemplateInterface\setContent().
ilSkillTreeNodeGUI::showUsage | ( | ) |
Definition at line 549 of file class.ilSkillTreeNodeGUI.php.
References $tpl, and ilGlobalTemplateInterface\setContent().
ilSkillTreeNodeGUI::update | ( | ) |
Update skill tree node.
Definition at line 368 of file class.ilSkillTreeNodeGUI.php.
References $ctrl, $lng, $tpl, afterUpdate(), ILIAS\Repository\form(), initForm(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
ilAccessHandler ilSkillTreeNodeGUI::$access |
Definition at line 43 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 49 of file class.ilSkillTreeNodeGUI.php.
Referenced by ilSkillTemplateCategoryGUI\addCreationButtons(), and ilSkillCategoryGUI\addCreationButtons().
|
protected |
Definition at line 54 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 31 of file class.ilSkillTreeNodeGUI.php.
Referenced by addObjectsTab(), addUsageTab(), afterUpdate(), cancelDelete(), confirmedDelete(), copyItems(), create(), deleteNodes(), exportSelectedNodes(), initForm(), redirectToParent(), save(), saveAllTitles(), and update().
|
protected |
Definition at line 37 of file class.ilSkillTreeNodeGUI.php.
Referenced by ilBasicSkillGUI\addLevel(), ilBasicSkillGUI\editLevel(), ilSkillRootGUI\importSkills(), ilSkillRootGUI\initInputForm(), ilBasicSkillGUI\initLevelForm(), ilBasicSkillGUI\saveLevel(), and ilBasicSkillGUI\updateLevel().
bool ilSkillTreeNodeGUI::$in_use = false |
Definition at line 41 of file class.ilSkillTreeNodeGUI.php.
Referenced by isInUse().
|
protected |
Definition at line 32 of file class.ilSkillTreeNodeGUI.php.
Referenced by addObjectsTab(), addStatusInput(), addUsageTab(), copyItems(), create(), cutItems(), editProperties(), initForm(), save(), saveOrder(), and update().
|
protected |
Definition at line 33 of file class.ilSkillTreeNodeGUI.php.
object ilSkillTreeNodeGUI::$node_object = null |
Definition at line 39 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 38 of file class.ilSkillTreeNodeGUI.php.
Referenced by getParentGUI().
|
protected |
Definition at line 52 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 51 of file class.ilSkillTreeNodeGUI.php.
Referenced by ilSkillTemplateCategoryGUI\addCreationButtons(), and ilSkillCategoryGUI\addCreationButtons().
|
protected |
Definition at line 59 of file class.ilSkillTreeNodeGUI.php.
Referenced by copyItems(), and cutItems().
|
protected |
Definition at line 64 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 50 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 53 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 47 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 44 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 48 of file class.ilSkillTreeNodeGUI.php.
Referenced by create().
|
protected |
Definition at line 34 of file class.ilSkillTreeNodeGUI.php.
Referenced by create(), editProperties(), save(), setSkillNodeDescription(), setTitleIcon(), showObjects(), showUsage(), and update().
|
protected |
Definition at line 36 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 45 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 46 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 40 of file class.ilSkillTreeNodeGUI.php.
Referenced by setSkillNodeDescription().
bool ilSkillTreeNodeGUI::$use_checked = false |
Definition at line 42 of file class.ilSkillTreeNodeGUI.php.
|
protected |
Definition at line 35 of file class.ilSkillTreeNodeGUI.php.