|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
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) | |
| Get subtree info lft, rgt, path, child, type. 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... | |
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 | $tree |
Definition at line 25 of file class.ilMaterializedPathTree.php.
|
static |
Definition at line 456 of file class.ilMaterializedPathTree.php.
References $ilDB, $row, $success, and createMaterializedPath().
Referenced by ilSetupGUI\switchTree().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 473 of file class.ilMaterializedPathTree.php.
References $ilDB, $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 273 of file class.ilMaterializedPathTree.php.
References $ilDB, $query, 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 169 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 82 of file class.ilMaterializedPathTree.php.
References $GLOBALS, ilTree\RELATION_CHILD, ilTree\RELATION_EQUALS, ilTree\RELATION_NONE, ilTree\RELATION_PARENT, and ilTree\RELATION_SIBLING.
| ilMaterializedPathTree::getSubTreeIds | ( | $a_node_id | ) |
Get subtree ids.
| type | $a_node_id |
Implements ilTreeImplementation.
Definition at line 53 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 | ) |
Get subtree info lft, rgt, path, child, type.
Implements ilTreeImplementation.
Definition at line 491 of file class.ilMaterializedPathTree.php.
References $ilDB, $query, $res, $row, DB_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 | |
| type | $a_types |
Implements ilTreeImplementation.
Definition at line 119 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(), and moveTree().
Here is the caller graph for this function:| ilMaterializedPathTree::insertNode | ( | $a_node_id, | |
| $a_parent_id, | |||
| $a_pos | |||
| ) |
Insert new node under parent node.
| type | $a_node_id | |
| type | $a_parent_id | |
| type | $a_pos |
Implements ilTreeImplementation.
Definition at line 202 of file class.ilMaterializedPathTree.php.
References $GLOBALS, $ilDB, $res, getTree(), and ilDB\LOCK_WRITE.
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 291 of file class.ilMaterializedPathTree.php.
References $ilDB, getTree(), and ilDB\LOCK_WRITE.
Here is the call graph for this function:| ilMaterializedPathTree::moveTree | ( | $a_source_id, | |
| $a_target_id, | |||
| $a_position | |||
| ) |
move source subtree to target node
| type | $a_source_id | |
| type | $a_target_id | |
| type | $a_position |
Implements ilTreeImplementation.
Definition at line 340 of file class.ilMaterializedPathTree.php.
References $GLOBALS, $ilDB, $query, $res, $row, getTree(), and ilDB\LOCK_WRITE.
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().