|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Base class for nested set path based trees. More...
Inheritance diagram for ilNestedSetTree:
Collaboration diagram for ilNestedSetTree:Public Member Functions | |||||||||||||
| __construct (ilTree $a_tree) | |||||||||||||
| Constructor. More... | |||||||||||||
| getTree () | |||||||||||||
| Get tree object. More... | |||||||||||||
| getSubTreeIds ($a_node_id) | |||||||||||||
| Get subtree ids. 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. More... | |||||||||||||
| getRelation ($a_node_a, $a_node_b) | |||||||||||||
| Get relation. More... | |||||||||||||
| getPathIds ($a_endnode, $a_startnode=0) | |||||||||||||
| Get path ids. More... | |||||||||||||
| insertNode ($a_node_id, $a_parent_id, $a_pos) | |||||||||||||
| Insert tree node. More... | |||||||||||||
| deleteTree ($a_node_id) | |||||||||||||
| Delete a subtree. More... | |||||||||||||
| moveToTrash ($a_node_id) | |||||||||||||
| Move to trash. More... | |||||||||||||
| getPathIdsUsingNestedSets ($a_endnode_id, $a_startnode_id=0) | |||||||||||||
| get path from a given startnode to a given endnode if startnode is not given the rootnode is startnode @access public More... | |||||||||||||
| moveTree ($a_source_id, $a_target_id, $a_position) | |||||||||||||
| Move source subtree to target. More... | |||||||||||||
| getSubtreeInfo ($a_endnode_id) | |||||||||||||
| Get rbac subtree info @global type $ilDB. 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... | |||||||||||||
| 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... | |||||||||||||
Protected Member Functions | |
| getPathIdsUsingAdjacencyMap ($a_endnode_id, $a_startnode_id=0) | |
| get path from a given startnode to a given endnode if startnode is not given the rootnode is startnode @access public More... | |
Private Attributes | |
| $tree = null | |
Base class for nested set path based trees.
Definition at line 16 of file class.ilNestedSetTree.php.
| ilNestedSetTree::__construct | ( | ilTree | $a_tree | ) |
Constructor.
| ilTree | $a_tree |
Definition at line 24 of file class.ilNestedSetTree.php.
| ilNestedSetTree::deleteTree | ( | $a_node_id | ) |
Delete a subtree.
| int | $a_node_id |
Implements ilTreeImplementation.
Definition at line 495 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_ASSOC, and getTree().
Here is the call graph for this function:| ilNestedSetTree::getPathIds | ( | $a_endnode, | |
$a_startnode = 0 |
|||
| ) |
Get path ids.
| int | $a_endnode | |
| int | $a_startnode |
Implements ilTreeImplementation.
Definition at line 192 of file class.ilNestedSetTree.php.
References getPathIdsUsingAdjacencyMap().
Here is the call graph for this function:
|
protected |
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnode @access public
| integer | node_id of endnode |
| integer | node_id of startnode (optional) |
Definition at line 625 of file class.ilNestedSetTree.php.
References $data, $DIC, $i, $ilDB, $query, $res, getPathIdsUsingNestedSets(), and getTree().
Referenced by getPathIds().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNestedSetTree::getPathIdsUsingNestedSets | ( | $a_endnode_id, | |
$a_startnode_id = 0 |
|||
| ) |
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnode @access public
| integer | node_id of endnode |
| integer | node_id of startnode (optional) |
Definition at line 767 of file class.ilNestedSetTree.php.
References $data, $DIC, $ilDB, $query, $res, and getTree().
Referenced by getPathIdsUsingAdjacencyMap().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNestedSetTree::getRelation | ( | $a_node_a, | |
| $a_node_b | |||
| ) |
Get relation.
| type | $a_node_a | |
| type | $a_node_b |
Implements ilTreeImplementation.
Definition at line 167 of file class.ilNestedSetTree.php.
References ilTree\RELATION_CHILD, ilTree\RELATION_EQUALS, ilTree\RELATION_NONE, ilTree\RELATION_PARENT, and ilTree\RELATION_SIBLING.
| ilNestedSetTree::getSubTreeIds | ( | $a_node_id | ) |
Get subtree ids.
| type | $a_node_id |
Implements ilTreeImplementation.
Definition at line 43 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and getTree().
Here is the call graph for this function:| ilNestedSetTree::getSubtreeInfo | ( | $a_endnode_id | ) |
Get rbac subtree info @global type $ilDB.
| type | $a_endnode_id |
Implements ilTreeImplementation.
Definition at line 973 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and getTree().
Here is the call graph for this function:| ilNestedSetTree::getSubTreeQuery | ( | $a_node, | |
$a_types = '', |
|||
$a_force_join_reference = true, |
|||
$a_fields = array() |
|||
| ) |
Get subtree.
| type | $a_node | |
| string | $a_types | |
| bool | $a_force_join_reference | |
| array | $a_fields |
Implements ilTreeImplementation.
Definition at line 120 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, and getTree().
Here is the call graph for this function:| ilNestedSetTree::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 72 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, and getTree().
Here is the call graph for this function:| ilNestedSetTree::getTree | ( | ) |
Get tree object.
Definition at line 33 of file class.ilNestedSetTree.php.
References $tree.
Referenced by deleteTree(), getPathIdsUsingAdjacencyMap(), getPathIdsUsingNestedSets(), getSubTreeIds(), getSubtreeInfo(), getSubTreeQuery(), getTrashSubTreeQuery(), insertNode(), moveToTrash(), moveTree(), and validateParentRelations().
Here is the caller graph for this function:| ilNestedSetTree::insertNode | ( | $a_node_id, | |
| $a_parent_id, | |||
| $a_pos | |||
| ) |
Insert tree node.
| type | $a_node_id | |
| type | $a_parent_id | |
| type | $a_pos |
| ilInvalidTreeStructureException |
Implements ilTreeImplementation.
Definition at line 205 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, $res, ilLogLevel\ERROR, ilLoggerFactory\getLogger(), getTree(), IL_LAST_NODE, and ilTree\POS_FIRST_NODE.
Here is the call graph for this function:| ilNestedSetTree::moveToTrash | ( | $a_node_id | ) |
Move to trash.
| int | $a_node_id |
Implements ilTreeImplementation.
Definition at line 583 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, and getTree().
Here is the call graph for this function:| ilNestedSetTree::moveTree | ( | $a_source_id, | |
| $a_target_id, | |||
| $a_position | |||
| ) |
Move source subtree to target.
| type | $a_source_id | |
| type | $a_target_id | |
| type | $a_position |
| InvalidArgumentException |
Implements ilTreeImplementation.
Definition at line 821 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, $res, ilLogLevel\ERROR, ilLoggerFactory\getLogger(), and getTree().
Here is the call graph for this function:| ilNestedSetTree::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.
Implements ilTreeImplementation.
Definition at line 1004 of file class.ilNestedSetTree.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_ASSOC, and getTree().
Here is the call graph for this function:
|
private |
Definition at line 18 of file class.ilNestedSetTree.php.
Referenced by getTree().