ILIAS  release_8 Revision v8.24
interface.ilTreeImplementation.php
Go to the documentation of this file.
1<?php
2
3declare(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}
Interface for tree implementations Currrently nested set or materialized path.
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.
getTrashSubTreeQuery(array $a_node, array $a_types, bool $a_force_join_reference=true, array $a_fields=[])
Get subtree query for trashed tree items.
getRelation(array $a_node_a, array $a_node_b)
Get relation of two nodes.
getSubTreeIds(int $a_node_id)
Get subtree ids for a specific node.
moveToTrash(int $a_node_id)
Move subtree to trash.
insertNode(int $a_node_id, int $a_parent_id, int $a_pos)
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.
deleteTree(int $a_node_id)
Delete tree.