ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
interface.ilTreeImplementation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
27{
32 public function getSubTreeIds(int $a_node_id): array;
33
37 public function getSubTreeQuery(
38 array $a_node,
39 array $a_types = [],
40 bool $a_force_join_reference = true,
41 array $a_fields = []
42 ): string;
43
47 public function getTrashSubTreeQuery(
48 array $a_node,
49 array $a_types,
50 bool $a_force_join_reference = true,
51 array $a_fields = []
52 ): string;
53
57 public function getRelation(array $a_node_a, array $a_node_b): int;
58
65 public function getPathIds(int $a_endnode, int $a_startnode = 0): array;
66
70 public function insertNode(int $a_node_id, int $a_parent_id, int $a_pos): void;
71
75 public function deleteTree(int $a_node_id): void;
76
80 public function moveToTrash(int $a_node_id): void;
81
86 public function moveTree(int $a_source_id, int $a_target_id, int $a_position): void;
87
92 public function getSubtreeInfo(int $a_endnode_id): array;
93
100 public function validateParentRelations(): array;
101}
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.