ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
__construct (int $skill_tree_id, Tree\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 31 of file class.SkillTreeNodeManager.php.
ILIAS\Skill\Node\SkillTreeNodeManager::__construct | ( | int | $skill_tree_id, |
Tree\SkillTreeFactory | $tree_factory | ||
) |
Definition at line 37 of file class.SkillTreeNodeManager.php.
References $DIC, ILIAS\Skill\Node\SkillTreeNodeManager\$skill_tree_id, and ILIAS\Repository\user().
|
static |
Remove all skill items from clipboard.
Definition at line 240 of file class.SkillTreeNodeManager.php.
References $DIC, and ilEditClipboard\clear().
Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\clipboardCopy(), ILIAS\Skill\Node\SkillTreeNodeManager\clipboardCut(), and ILIAS\Skill\Node\SkillTreeNodeManager\insertItemsFromClip().
ILIAS\Skill\Node\SkillTreeNodeManager::clipboardCopy | ( | array | $a_ids | ) |
Copy a set of skills/skill categories into the clipboard.
Definition at line 153 of file class.SkillTreeNodeManager.php.
References $id, ILIAS\Skill\Node\SkillTreeNodeManager\$tree, ILIAS\Skill\Node\SkillTreeNodeManager\$user, ilSkillTreeNode\_lookupTitle(), ilSkillTreeNode\_lookupType(), ILIAS\Skill\Node\SkillTreeNodeManager\clearClipboard(), and ilEditClipboard\setAction().
Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\clipboardCut().
ILIAS\Skill\Node\SkillTreeNodeManager::clipboardCut | ( | array | $a_ids | ) |
Cut and copy a set of skills/skill categories into the clipboard.
Definition at line 111 of file class.SkillTreeNodeManager.php.
References $id, $path, ILIAS\Skill\Node\SkillTreeNodeManager\$tree, ILIAS\Skill\Node\SkillTreeNodeManager\clearClipboard(), ILIAS\Skill\Node\SkillTreeNodeManager\clipboardCopy(), and ilEditClipboard\setAction().
ILIAS\Skill\Node\SkillTreeNodeManager::getRootId | ( | ) |
Definition at line 102 of file class.SkillTreeNodeManager.php.
ILIAS\Skill\Node\SkillTreeNodeManager::getTopTemplates | ( | ) |
Get top skill templates and template categories.
Definition at line 362 of file class.SkillTreeNodeManager.php.
ILIAS\Skill\Node\SkillTreeNodeManager::getWrittenPath | ( | int | $node_id, |
int | $tref_id = 0 |
||
) |
ILIAS\Skill\Node\SkillTreeNodeManager::insertItemsFromClip | ( | string | $a_type, |
int | $a_obj_id | ||
) |
Insert basic skills from clipboard.
Definition at line 200 of file class.SkillTreeNodeManager.php.
References ILIAS\Skill\Node\SkillTreeNodeManager\$user, ILIAS\Skill\Node\SkillTreeNodeManager\clearClipboard(), ilEditClipboard\getAction(), ILIAS\Skill\Node\SkillTreeNodeManager\pasteTree(), ilTree\POS_LAST_NODE, and ILIAS\Skill\Node\SkillTreeNodeManager\saveChildsOrder().
|
protected |
Paste item (tree) from clipboard to skill tree.
Definition at line 258 of file class.SkillTreeNodeManager.php.
References $DIC, $lng, ILIAS\Skill\Node\SkillTreeNodeManager\$user, ilSkillTreeNode\_lookupType(), null, ilTree\POS_LAST_NODE, and ILIAS\Skill\Node\SkillTreeNodeManager\putIntoTree().
Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\insertItemsFromClip().
ILIAS\Skill\Node\SkillTreeNodeManager::putIntoTree | ( | \ilSkillTreeNode | $node, |
int | $parent_node_id, | ||
int | $a_target_node_id = 0 |
||
) |
Definition at line 47 of file class.SkillTreeNodeManager.php.
References ILIAS\Skill\Node\SkillTreeNodeManager\$tree, ilSkillTreeNode\_lookupType(), ilSkillTreeNode\getId(), ilSkillTreeNode\getType(), ilTree\POS_FIRST_NODE, ilSkillTreeNode\setOrderNr(), and ilSkillTreeNode\update().
Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\pasteTree().
ILIAS\Skill\Node\SkillTreeNodeManager::saveChildsOrder | ( | int | $a_par_id, |
array | $a_childs_order, | ||
bool | $a_templates = false |
||
) |
Definition at line 324 of file class.SkillTreeNodeManager.php.
References $c, ILIAS\Skill\Node\SkillTreeNodeManager\$tree, ilSkillTreeNode\_writeOrderNr(), ilTree\getChilds(), ILIAS\Repository\int(), and ilArrayUtil\sortArray().
Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\insertItemsFromClip().
|
protected |
Definition at line 33 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\__construct().
|
protected |
|
protected |
Definition at line 35 of file class.SkillTreeNodeManager.php.
Referenced by ILIAS\Skill\Node\SkillTreeNodeManager\clipboardCopy(), ILIAS\Skill\Node\SkillTreeNodeManager\insertItemsFromClip(), and ILIAS\Skill\Node\SkillTreeNodeManager\pasteTree().