|
ILIAS
release_8 Revision v8.24
|
Interface for tree implementations Currrently nested set or materialized path. More...
Inheritance diagram for ilTreeImplementation:
Collaboration diagram for ilTreeImplementation:Public Member Functions | |
| getSubTreeIds (int $a_node_id) | |
| Get subtree ids for a specific node. More... | |
| getSubTreeQuery (array $a_node, array $a_types=[], bool $a_force_join_reference=true, array $a_fields=[]) | |
| Get subtree query. More... | |
| getTrashSubTreeQuery (array $a_node, array $a_types, bool $a_force_join_reference=true, array $a_fields=[]) | |
| Get subtree query for trashed tree items. More... | |
| getRelation (array $a_node_a, array $a_node_b) | |
| Get relation of two nodes. More... | |
| getPathIds (int $a_endnode, int $a_startnode=0) | |
| Get path ids from a startnode to a given endnode. More... | |
| insertNode (int $a_node_id, int $a_parent_id, int $a_pos) | |
| deleteTree (int $a_node_id) | |
| Delete tree. More... | |
| moveToTrash (int $a_node_id) | |
| Move subtree to trash. More... | |
| moveTree (int $a_source_id, int $a_target_id, int $a_position) | |
| Move a source subtree to target. More... | |
| getSubtreeInfo (int $a_endnode_id) | |
| Get subtree info lft, rgt, path, child, type. More... | |
| validateParentRelations () | |
| Validate the parent relations of the tree implementation For nested set, validate the lft, rgt against child <-> parent For materialized path validate path against child <-> parent. More... | |
Interface for tree implementations Currrently nested set or materialized path.
Definition at line 12 of file interface.ilTreeImplementation.php.
| ilTreeImplementation::deleteTree | ( | int | $a_node_id | ) |
Delete tree.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::getPathIds | ( | int | $a_endnode, |
| int | $a_startnode = 0 |
||
| ) |
Get path ids from a startnode to a given endnode.
| int | $a_endnode | |
| int | $a_startnode |
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::getRelation | ( | array | $a_node_a, |
| array | $a_node_b | ||
| ) |
Get relation of two nodes.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::getSubTreeIds | ( | int | $a_node_id | ) |
Get subtree ids for a specific node.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::getSubtreeInfo | ( | int | $a_endnode_id | ) |
Get subtree info lft, rgt, path, child, type.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::getSubTreeQuery | ( | array | $a_node, |
| array | $a_types = [], |
||
| bool | $a_force_join_reference = true, |
||
| array | $a_fields = [] |
||
| ) |
Get subtree query.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::getTrashSubTreeQuery | ( | array | $a_node, |
| array | $a_types, | ||
| bool | $a_force_join_reference = true, |
||
| array | $a_fields = [] |
||
| ) |
Get subtree query for trashed tree items.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::insertNode | ( | int | $a_node_id, |
| int | $a_parent_id, | ||
| int | $a_pos | ||
| ) |
| ilInvalidTreeStructureException |
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::moveToTrash | ( | int | $a_node_id | ) |
Move subtree to trash.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::moveTree | ( | int | $a_source_id, |
| int | $a_target_id, | ||
| int | $a_position | ||
| ) |
Move a source subtree to target.
| InvalidArgumentException |
Implemented in ilMaterializedPathTree, and ilNestedSetTree.
| ilTreeImplementation::validateParentRelations | ( | ) |
Validate the parent relations of the tree implementation For nested set, validate the lft, rgt against child <-> parent For materialized path validate path against child <-> parent.
Implemented in ilMaterializedPathTree, and ilNestedSetTree.