ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
interface.ilTreeImplementation.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
15{
16
23 public function getSubTreeIds($a_node_id);
24
30 public function getSubTreeQuery($a_node, $a_types = '', $a_force_join_reference = true, $a_fields = array());
31
32
41 public function getTrashSubTreeQuery($a_node, $a_types, $a_force_join_reference = true, $a_fields = []);
42
51 public function getRelation($a_node_a, $a_node_b);
52
58 public function getPathIds($a_endnode, $a_startnode = 0);
59
60
61 public function insertNode($a_node_id, $a_parent_id, $a_pos);
62
67 public function deleteTree($a_node_id);
68
69
74 public function moveToTrash($a_node_id);
75
76
83 public function moveTree($a_source_id, $a_target_id, $a_position);
84
85
90 public function getSubtreeInfo($a_endnode_id);
91
92
99 public function validateParentRelations();
100}
An exception for terminatinating execution or to throw for unit testing.
Interface for tree implementations Currrently nested set or materialize path.
validateParentRelations()
Validate the parent relations of the tree implementation For nested set, validate the lft,...
getSubtreeInfo($a_endnode_id)
Get subtree info lft, rgt, path, child, type.
moveTree($a_source_id, $a_target_id, $a_position)
Move a source subtree to target.
moveToTrash($a_node_id)
Move subtree to trash.
getSubTreeIds($a_node_id)
Get subtree ids for a specific node.
getPathIds($a_endnode, $a_startnode=0)
Get path ids from a startnode to a given endnode.
getTrashSubTreeQuery($a_node, $a_types, $a_force_join_reference=true, $a_fields=[])
Get subtree query for trashed tree items.
getSubTreeQuery($a_node, $a_types='', $a_force_join_reference=true, $a_fields=array())
Get subtree.
getRelation($a_node_a, $a_node_b)
Get relation of two nodes.
deleteTree($a_node_id)
Delete tree.
insertNode($a_node_id, $a_parent_id, $a_pos)