ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
40 public function getRelation($a_node_a, $a_node_b);
41
47 public function getPathIds($a_endnode, $a_startnode = 0);
48
49
50 public function insertNode($a_node_id, $a_parent_id, $a_pos);
51
56 public function deleteTree($a_node_id);
57
58
63 public function moveToTrash($a_node_id);
64
65
72 public function moveTree($a_source_id, $a_target_id, $a_position);
73
74
79 public function getSubtreeInfo($a_endnode_id);
80
81
88 public function validateParentRelations();
89}
90?>
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.
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)