|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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... | |
| 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... | |
| 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 477 of file class.ilMaterializedPathTree.php.
References $ilDB, $r, $row, $success, and createMaterializedPath().
Referenced by ilSCTreeTasksGUI\repairStructure(), and ilSetupGUI\switchTree().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
| type | $parent | |
| type | $parentPath |
Definition at line 498 of file class.ilMaterializedPathTree.php.
References $ilDB, $r, $row, 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 282 of file class.ilMaterializedPathTree.php.
References $ilDB, $query, $res, $row, 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 176 of file class.ilMaterializedPathTree.php.
References $ilDB, $path, $query, $res, $row, 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 84 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 $ilDB, $query, $res, $row, and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::getSubtreeInfo | ( | $a_endnode_id | ) |
| int | $a_endnode_id |
Implements ilTreeImplementation.
Definition at line 520 of file class.ilMaterializedPathTree.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, 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 125 of file class.ilMaterializedPathTree.php.
References $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(), 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 211 of file class.ilMaterializedPathTree.php.
References $ilDB, $r, $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 324 of file class.ilMaterializedPathTree.php.
References $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 371 of file class.ilMaterializedPathTree.php.
References $ilDB, $query, $res, $row, ilLogLevel\ERROR, ilLoggerFactory\getLogger(), and getTree().
Here is the call graph for this function:| ilMaterializedPathTree::validateParentRelations | ( | ) |
Validaate parent relations.
Implements ilTreeImplementation.
Definition at line 584 of file class.ilMaterializedPathTree.php.
References $ilDB, $query, $res, $row, 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().