ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilTreeImplementation.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
5 
13 {
18  public function getSubTreeIds(int $a_node_id): array;
19 
23  public function getSubTreeQuery(
24  array $a_node,
25  array $a_types = [],
26  bool $a_force_join_reference = true,
27  array $a_fields = []
28  ): string;
29 
33  public function getTrashSubTreeQuery(
34  array $a_node,
35  array $a_types,
36  bool $a_force_join_reference = true,
37  array $a_fields = []
38  ): string;
39 
43  public function getRelation(array $a_node_a, array $a_node_b): int;
44 
51  public function getPathIds(int $a_endnode, int $a_startnode = 0): array;
52 
56  public function insertNode(int $a_node_id, int $a_parent_id, int $a_pos): void;
57 
61  public function deleteTree(int $a_node_id): void;
62 
66  public function moveToTrash(int $a_node_id): void;
67 
72  public function moveTree(int $a_source_id, int $a_target_id, int $a_position): void;
73 
78  public function getSubtreeInfo(int $a_endnode_id): array;
79 
86  public function validateParentRelations(): array;
87 }
getSubTreeQuery(array $a_node, array $a_types=[], bool $a_force_join_reference=true, array $a_fields=[])
Get subtree query.
moveTree(int $a_source_id, int $a_target_id, int $a_position)
Move a source subtree to target.
moveToTrash(int $a_node_id)
Move subtree to trash.
deleteTree(int $a_node_id)
Delete tree.
validateParentRelations()
Validate the parent relations of the tree implementation For nested set, validate the lft...
getPathIds(int $a_endnode, int $a_startnode=0)
Get path ids from a startnode to a given endnode.
getSubtreeInfo(int $a_endnode_id)
Get subtree info lft, rgt, path, child, type.
insertNode(int $a_node_id, int $a_parent_id, int $a_pos)
getRelation(array $a_node_a, array $a_node_b)
Get relation of two nodes.
Interface for tree implementations Currrently nested set or materialized path.
getSubTreeIds(int $a_node_id)
Get subtree ids for a specific node.
getTrashSubTreeQuery(array $a_node, array $a_types, bool $a_force_join_reference=true, array $a_fields=[])
Get subtree query for trashed tree items.