|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Base class for materialize path based trees Based on implementation of Werner Randelshofer. More...
Inheritance diagram for ilMaterializedPathTree:
Collaboration diagram for ilMaterializedPathTree:Public Member Functions | |||||||||||||
| __construct (ilTree $a_tree) | |||||||||||||
| Constructor. More... | |||||||||||||
| getTree () | |||||||||||||
| Get tree object. More... | |||||||||||||
| getSubTreeIds ($a_node_id) | |||||||||||||
| Get subtree ids. More... | |||||||||||||
| getRelation ($a_node_a, $a_node_b) | |||||||||||||
| Get relation of two nodes. More... | |||||||||||||
| getTrashSubTreeQuery ($a_node, $a_types, $a_force_join_reference=true, $a_fields=[]) | |||||||||||||
Get subtree query for trashed tree items.
| |||||||||||||
| getSubTreeQuery ($a_node, $a_types='', $a_force_join_reference=true, $a_fields=array()) | |||||||||||||
| Get subtree query. More... | |||||||||||||
| getPathIds ($a_endnode, $a_startnode=0) | |||||||||||||
| Get path ids. More... | |||||||||||||
| insertNode ($a_node_id, $a_parent_id, $a_pos) | |||||||||||||
| Insert new node under parent node. More... | |||||||||||||
| deleteTree ($a_node_id) | |||||||||||||
| Delete a subtree. More... | |||||||||||||
| moveToTrash ($a_node_id) | |||||||||||||
| Move subtree to trash. More... | |||||||||||||
| moveTree ($a_source_id, $a_target_id, $a_position) | |||||||||||||
| move source subtree to target node More... | |||||||||||||
| getSubtreeInfo ($a_endnode_id) | |||||||||||||
| validateParentRelations () | |||||||||||||
| Validaate parent relations. More... | |||||||||||||
| getSubTreeIds ($a_node_id) | |||||||||||||
| Get subtree ids for a specific node. More... | |||||||||||||
| getSubTreeQuery ($a_node, $a_types='', $a_force_join_reference=true, $a_fields=array()) | |||||||||||||
| Get subtree. More... | |||||||||||||
| getTrashSubTreeQuery ($a_node, $a_types, $a_force_join_reference=true, $a_fields=[]) | |||||||||||||
| Get subtree query for trashed tree items. More... | |||||||||||||
| getRelation ($a_node_a, $a_node_b) | |||||||||||||
| Get relation of two nodes. More... | |||||||||||||
| getPathIds ($a_endnode, $a_startnode=0) | |||||||||||||
| Get path ids from a startnode to a given endnode. More... | |||||||||||||
| insertNode ($a_node_id, $a_parent_id, $a_pos) | |||||||||||||
| deleteTree ($a_node_id) | |||||||||||||
| Delete tree. More... | |||||||||||||
| moveToTrash ($a_node_id) | |||||||||||||
| Move subtree to trash. More... | |||||||||||||
| moveTree ($a_source_id, $a_target_id, $a_position) | |||||||||||||
| Move a source subtree to target. More... | |||||||||||||
| getSubtreeInfo ($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... | |||||||||||||
Static Public Member Functions | |
| static | createFromParentReleation () |
Protected Member Functions | |
| getMaximumPossibleDepth () | |
| Get maximum possible depth. More... | |
Static Private Member Functions | |
| static | createMaterializedPath ($parent, $parentPath) |
Private Attributes | |
| $maximum_possible_depth = 100 | |
| $tree = null | |
Base class for materialize path based trees Based on implementation of Werner Randelshofer.
Definition at line 16 of file class.ilMaterializedPathTree.php.
| ilMaterializedPathTree::__construct | ( | ilTree | $a_tree | ) |
Constructor.
| ilTree | $a_tree |
Definition at line 25 of file class.ilMaterializedPathTree.php.
|
static |
Definition at line 496 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $success, and createMaterializedPath().
Referenced by ilSCTreeTasksGUI\repairStructure().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
| type | $parent | |
| type | $parentPath |
Definition at line 517 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, and createMaterializedPath().
Referenced by createFromParentReleation(), and createMaterializedPath().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMaterializedPathTree::deleteTree | ( | $a_node_id | ) |
Delete a subtree.
| int | $a_node_id |
Implements ilTreeImplementation.
Definition at line 314 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $query, $res, and getTree().
Here is the call graph for this function:
|
protected |
Get maximum possible depth.
Definition at line 35 of file class.ilMaterializedPathTree.php.
References $maximum_possible_depth.
| ilMaterializedPathTree::getPathIds | ( | $a_endnode, | |
$a_startnode = 0 |
|||
| ) |
Get path ids.
| int | $a_endnode | |
| int | $a_startnode |
Implements ilTreeImplementation.
Definition at line 213 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $query, $res, and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::getRelation | ( | $a_node_a, | |
| $a_node_b | |||
| ) |
Get relation of two nodes.
| type | $a_node_a | |
| type | $a_node_b |
Implements ilTreeImplementation.
Definition at line 85 of file class.ilMaterializedPathTree.php.
References ilLoggerFactory\getLogger(), ilTree\RELATION_CHILD, ilTree\RELATION_EQUALS, ilTree\RELATION_NONE, ilTree\RELATION_PARENT, and ilTree\RELATION_SIBLING.
Here is the call graph for this function:| ilMaterializedPathTree::getSubTreeIds | ( | $a_node_id | ) |
Get subtree ids.
| type | $a_node_id |
Implements ilTreeImplementation.
Definition at line 54 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $query, $res, and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::getSubtreeInfo | ( | $a_endnode_id | ) |
| int | $a_endnode_id |
Implements ilTreeImplementation.
Definition at line 540 of file class.ilMaterializedPathTree.php.
References Vendor\Package\$a, Vendor\Package\$b, $DIC, $ilDB, $query, $res, and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::getSubTreeQuery | ( | $a_node, | |
$a_types = '', |
|||
$a_force_join_reference = true, |
|||
$a_fields = array() |
|||
| ) |
Get subtree query.
| type | $a_node | |
| string | $a_types | |
| bool | $a_force_join_reference | |
| array | $a_fields |
Implements ilTreeImplementation.
Definition at line 166 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $query, and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::getTrashSubTreeQuery | ( | $a_node, | |
| $a_types, | |||
$a_force_join_reference = true, |
|||
$a_fields = [] |
|||
| ) |
Get subtree query for trashed tree items.
| $a_node | ||
| $a_types | ||
| bool | $a_force_join_reference | |
| array | $a_fields |
Implements ilTreeImplementation.
Definition at line 116 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $query, and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::getTree | ( | ) |
Get tree object.
Definition at line 44 of file class.ilMaterializedPathTree.php.
References $tree.
Referenced by deleteTree(), getPathIds(), getSubTreeIds(), getSubtreeInfo(), getSubTreeQuery(), getTrashSubTreeQuery(), insertNode(), moveToTrash(), moveTree(), and validateParentRelations().
Here is the caller graph for this function:| ilMaterializedPathTree::insertNode | ( | $a_node_id, | |
| $a_parent_id, | |||
| $a_pos | |||
| ) |
Insert new node under parent node.
| int | $a_node_id | |
| int | $a_parent_id | |
| int | $a_pos |
| ilInvalidTreeStructureException |
Implements ilTreeImplementation.
Definition at line 247 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $res, ilLogLevel\ERROR, ilLoggerFactory\getLogger(), and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::moveToTrash | ( | $a_node_id | ) |
Move subtree to trash.
| type | $a_node_id |
Implements ilTreeImplementation.
Definition at line 354 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::moveTree | ( | $a_source_id, | |
| $a_target_id, | |||
| $a_position | |||
| ) |
move source subtree to target node
| int | $a_source_id | |
| int | $a_target_id | |
| int | $a_position |
| InvalidArgumentException |
Implements ilTreeImplementation.
Definition at line 400 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $query, $res, ilLogLevel\ERROR, ilLoggerFactory\getLogger(), getTree(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilMaterializedPathTree::validateParentRelations | ( | ) |
Validaate parent relations.
Implements ilTreeImplementation.
Definition at line 617 of file class.ilMaterializedPathTree.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_ASSOC, ilLoggerFactory\getLogger(), and getTree().
Here is the call graph for this function:
|
private |
Definition at line 18 of file class.ilMaterializedPathTree.php.
Referenced by getMaximumPossibleDepth().
|
private |
Definition at line 19 of file class.ilMaterializedPathTree.php.
Referenced by getTree().