3 declare(strict_types=1);
26 bool $a_force_join_reference =
true,
36 bool $a_force_join_reference =
true,
43 public function getRelation(array $a_node_a, array $a_node_b):
int;
51 public function getPathIds(
int $a_endnode,
int $a_startnode = 0): array;
56 public function insertNode(
int $a_node_id,
int $a_parent_id,
int $a_pos): void;
61 public function deleteTree(
int $a_node_id): void;
72 public function moveTree(
int $a_source_id,
int $a_target_id,
int $a_position): void;
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.