ILIAS
release_8 Revision v8.23
|
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().
|
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().
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(), and ilEditClipboard\setAction().
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCut().
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(), and ilEditClipboard\setAction().
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 |
||
) |
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().
|
protected |
Paste item (tree) from clipboard to skill tree.
Definition at line 256 of file class.SkillTreeNodeManager.php.
References $DIC, $ilUser, $lng, ILIAS\Skill\Tree\SkillTreeNodeManager\$user, ilSkillTreeNode\_lookupType(), ilTree\POS_LAST_NODE, and ILIAS\Skill\Tree\SkillTreeNodeManager\putIntoTree().
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\insertItemsFromClip().
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(), ilSkillTreeNode\getId(), ilSkillTreeNode\getType(), ilTree\POS_FIRST_NODE, ilSkillTreeNode\setOrderNr(), and ilSkillTreeNode\update().
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\pasteTree().
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, ILIAS\Skill\Tree\SkillTreeNodeManager\$tree, ilSkillTreeNode\_writeOrderNr(), ilTree\getChilds(), ILIAS\Repository\int(), and ilArrayUtil\sortArray().
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\insertItemsFromClip().
|
protected |
Definition at line 31 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\__construct().
|
protected |
|
protected |
Definition at line 33 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Tree\SkillTreeNodeManager\clipboardCopy(), ILIAS\Skill\Tree\SkillTreeNodeManager\insertItemsFromClip(), and ILIAS\Skill\Tree\SkillTreeNodeManager\pasteTree().