|
ILIAS
release_8 Revision v8.24
|
Skill tree manager. More...
Collaboration diagram for ILIAS\Skill\Tree\SkillTreeNodeManager:Public Member Functions | |
| __construct (int $skill_tree_id, SkillTreeFactory $tree_factory) | |
| putIntoTree (\ilSkillTreeNode $node, int $parent_node_id, int $a_target_node_id=0) | |
| getWrittenPath (int $node_id, int $tref_id=0) | |
| getRootId () | |
| clipboardCut (array $a_ids) | |
| Cut and copy a set of skills/skill categories into the clipboard. More... | |
| clipboardCopy (array $a_ids) | |
| Copy a set of skills/skill categories into the clipboard. More... | |
| insertItemsFromClip (string $a_type, int $a_obj_id) | |
| Insert basic skills from clipboard. More... | |
| saveChildsOrder (int $a_par_id, array $a_childs_order, bool $a_templates=false) | |
| getTopTemplates () | |
| Get top skill templates and template categories. More... | |
Static Public Member Functions | |
| static | clearClipboard () |
| Remove all skill items from clipboard. More... | |
Protected Member Functions | |
| pasteTree (int $a_item_id, int $a_parent_id, int $a_target, string $a_insert_time, array &$a_copied_nodes, bool $a_as_copy=false, bool $a_add_suffix=false) | |
| Paste item (tree) from clipboard to skill tree. More... | |
Protected Attributes | |
| int | $skill_tree_id = 0 |
| ilSkillTree | $tree |
| ilObjUser | $user |
Skill tree manager.
Definition at line 29 of file class.SkillTreeNodeManager.php.
| ILIAS\Skill\Tree\SkillTreeNodeManager::__construct | ( | int | $skill_tree_id, |
| SkillTreeFactory | $tree_factory | ||
| ) |
Definition at line 35 of file class.SkillTreeNodeManager.php.
References $DIC, ILIAS\Skill\Tree\SkillTreeNodeManager\$skill_tree_id, ILIAS\Skill\Tree\SkillTreeFactory\getTreeById(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Remove all skill items from clipboard.
Definition at line 238 of file class.SkillTreeNodeManager.php.
References $DIC, $ilUser, and ilEditClipboard\clear().
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCopy(), ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCut(), and ILIAS\Skill\Tree\SkillTreeNodeManager\insertItemsFromClip().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Skill\Tree\SkillTreeNodeManager::clipboardCopy | ( | array | $a_ids | ) |
Copy a set of skills/skill categories into the clipboard.
Definition at line 151 of file class.SkillTreeNodeManager.php.
References $id, $ilUser, ILIAS\Skill\Tree\SkillTreeNodeManager\$tree, ILIAS\Skill\Tree\SkillTreeNodeManager\$user, ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), ILIAS\Skill\Tree\SkillTreeNodeManager\clearClipboard(), ilTree\getNodeData(), ilTree\getSubTree(), ilTree\isInTree(), and ilEditClipboard\setAction().
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCut().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Skill\Tree\SkillTreeNodeManager::clipboardCut | ( | array | $a_ids | ) |
Cut and copy a set of skills/skill categories into the clipboard.
Definition at line 109 of file class.SkillTreeNodeManager.php.
References $id, $path, ILIAS\Skill\Tree\SkillTreeNodeManager\$tree, ILIAS\Skill\Tree\SkillTreeNodeManager\clearClipboard(), ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCopy(), ilTree\deleteTree(), ilTree\getNodeData(), ilTree\getPathId(), ilTree\isInTree(), and ilEditClipboard\setAction().
Here is the call graph for this function:| ILIAS\Skill\Tree\SkillTreeNodeManager::getRootId | ( | ) |
Definition at line 100 of file class.SkillTreeNodeManager.php.
| ILIAS\Skill\Tree\SkillTreeNodeManager::getTopTemplates | ( | ) |
Get top skill templates and template categories.
Definition at line 360 of file class.SkillTreeNodeManager.php.
| ILIAS\Skill\Tree\SkillTreeNodeManager::getWrittenPath | ( | int | $node_id, |
| int | $tref_id = 0 |
||
| ) |
Definition at line 87 of file class.SkillTreeNodeManager.php.
References $path.
| ILIAS\Skill\Tree\SkillTreeNodeManager::insertItemsFromClip | ( | string | $a_type, |
| int | $a_obj_id | ||
| ) |
Insert basic skills from clipboard.
Definition at line 198 of file class.SkillTreeNodeManager.php.
References $ilUser, ILIAS\Skill\Tree\SkillTreeNodeManager\$user, ILIAS\Skill\Tree\SkillTreeNodeManager\clearClipboard(), ilEditClipboard\getAction(), ILIAS\Skill\Tree\SkillTreeNodeManager\pasteTree(), ilTree\POS_LAST_NODE, and ILIAS\Skill\Tree\SkillTreeNodeManager\saveChildsOrder().
Here is the call graph for this function:
|
protected |
Paste item (tree) from clipboard to skill tree.
Definition at line 256 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\insertItemsFromClip().
Here is the caller graph for this function:| ILIAS\Skill\Tree\SkillTreeNodeManager::putIntoTree | ( | \ilSkillTreeNode | $node, |
| int | $parent_node_id, | ||
| int | $a_target_node_id = 0 |
||
| ) |
Definition at line 45 of file class.SkillTreeNodeManager.php.
References ILIAS\Skill\Tree\SkillTreeNodeManager\$tree, ilSkillTreeNode\_lookupType(), ilTree\getChilds(), ilSkillTreeNode\getId(), ilSkillTree\getMaxOrderNr(), ilSkillTreeNode\getType(), ilTree\insertNode(), ilTree\isInTree(), ilTree\POS_FIRST_NODE, ilTree\readRootId(), ilSkillTreeNode\setOrderNr(), and ilSkillTreeNode\update().
Here is the call graph for this function:| ILIAS\Skill\Tree\SkillTreeNodeManager::saveChildsOrder | ( | int | $a_par_id, |
| array | $a_childs_order, | ||
| bool | $a_templates = false |
||
| ) |
Definition at line 322 of file class.SkillTreeNodeManager.php.
References $c, ilSkillTreeNode\_writeOrderNr(), ILIAS\Repository\int(), and ilArrayUtil\sortArray().
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\insertItemsFromClip().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 31 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\__construct().
|
protected |
Definition at line 32 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCopy(), ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCut(), and ILIAS\Skill\Tree\SkillTreeNodeManager\putIntoTree().
|
protected |
Definition at line 33 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCopy(), and ILIAS\Skill\Tree\SkillTreeNodeManager\insertItemsFromClip().