| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
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 () | |||
| getSubTreeIds (int $a_node_id) | |||
| Get subtree ids  int[].  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... | |||
| getSubTreeQuery (array $a_node, array $a_types=[], bool $a_force_join_reference=true, array $a_fields=[]) | |||
| Get subtree.  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... | |||
| getPathIdsUsingNestedSets (int $a_endnode_id, int $a_startnode_id=0) | |||
| get path from a given startnode to a given endnode if startnode is not given the rootnode is startnode  More... | |||
| moveTree (int $a_source_id, int $a_target_id, int $a_position) | |||
Move a source subtree to target.
  | |||
| getSubtreeInfo (int $a_endnode_id) | |||
| 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.
  | |||
Protected Member Functions | |
| getPathIdsUsingAdjacencyMap (int $a_endnode_id, int $a_startnode_id=0) | |
| get path from a given startnode to a given endnode if startnode is not given the rootnode is startnode  More... | |
Protected Attributes | |
| ilTree | $tree | 
| ilDBInterface | $db | 
Base class for nested set path based trees.
Definition at line 12 of file class.ilNestedSetTree.php.
| ilNestedSetTree::__construct | ( | ilTree | $a_tree | ) | 
| ilNestedSetTree::deleteTree | ( | int | $a_node_id | ) | 
Delete tree.
Implements ilTreeImplementation.
Definition at line 464 of file class.ilNestedSetTree.php.
References $db, $res, ilDBConstants\FETCHMODE_ASSOC, and getTree().
 Here is the call graph for this function:| ilNestedSetTree::getPathIds | ( | int | $a_endnode, | 
| int | $a_startnode = 0  | 
        ||
| ) | 
Get path ids from a startnode to a given endnode.
| int | $a_endnode | |
| int | $a_startnode | 
Implements ilTreeImplementation.
Definition at line 177 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
Definition at line 584 of file class.ilNestedSetTree.php.
References $data, $res, getPathIdsUsingNestedSets(), getTree(), and ILIAS\Repository\int().
Referenced by getPathIds().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilNestedSetTree::getPathIdsUsingNestedSets | ( | int | $a_endnode_id, | 
| int | $a_startnode_id = 0  | 
        ||
| ) | 
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnode
Definition at line 718 of file class.ilNestedSetTree.php.
References $data, $res, getTree(), and ILIAS\Repository\int().
Referenced by getPathIdsUsingAdjacencyMap().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilNestedSetTree::getRelation | ( | array | $a_node_a, | 
| array | $a_node_b | ||
| ) | 
Get relation of two nodes.
Implements ilTreeImplementation.
Definition at line 155 of file class.ilNestedSetTree.php.
References ilTree\RELATION_CHILD, ilTree\RELATION_EQUALS, ilTree\RELATION_NONE, ilTree\RELATION_PARENT, and ilTree\RELATION_SIBLING.
| ilNestedSetTree::getSubTreeIds | ( | int | $a_node_id | ) | 
Get subtree ids int[].
Implements ilTreeImplementation.
Definition at line 37 of file class.ilNestedSetTree.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, getTree(), and ILIAS\Repository\int().
 Here is the call graph for this function:| ilNestedSetTree::getSubtreeInfo | ( | int | $a_endnode_id | ) | 
| int | $a_endnode_id | 
Implements ilTreeImplementation.
Definition at line 925 of file class.ilNestedSetTree.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, getTree(), and ILIAS\Repository\int().
 Here is the call graph for this function:| ilNestedSetTree::getSubTreeQuery | ( | array | $a_node, | 
| array | $a_types = [],  | 
        ||
| bool | $a_force_join_reference = true,  | 
        ||
| array | $a_fields = []  | 
        ||
| ) | 
Get subtree.
Implements ilTreeImplementation.
Definition at line 107 of file class.ilNestedSetTree.php.
References getTree().
 Here is the call graph for this function:| ilNestedSetTree::getTrashSubTreeQuery | ( | array | $a_node, | 
| array | $a_types, | ||
| bool | $a_force_join_reference = true,  | 
        ||
| array | $a_fields = []  | 
        ||
| ) | 
Get subtree query for trashed tree items.
Implements ilTreeImplementation.
Definition at line 62 of file class.ilNestedSetTree.php.
References getTree().
 Here is the call graph for this function:| ilNestedSetTree::getTree | ( | ) | 
Definition at line 28 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 | ( | int | $a_node_id, | 
| int | $a_parent_id, | ||
| int | $a_pos | ||
| ) | 
| ilInvalidTreeStructureException | 
Implements ilTreeImplementation.
Definition at line 185 of file class.ilNestedSetTree.php.
References $db, $r, $res, ilLogLevel\ERROR, ilLoggerFactory\getLogger(), getTree(), ILIAS\Repository\int(), ilTree\POS_FIRST_NODE, and ilTree\POS_LAST_NODE.
 Here is the call graph for this function:| ilNestedSetTree::moveToTrash | ( | int | $a_node_id | ) | 
Move subtree to trash.
Implements ilTreeImplementation.
Definition at line 547 of file class.ilNestedSetTree.php.
References $db, and getTree().
 Here is the call graph for this function:| ilNestedSetTree::moveTree | ( | int | $a_source_id, | 
| int | $a_target_id, | ||
| int | $a_position | ||
| ) | 
Move a source subtree to target.
| InvalidArgumentException | 
Implements ilTreeImplementation.
Definition at line 762 of file class.ilNestedSetTree.php.
References $ilDB, $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 960 of file class.ilNestedSetTree.php.
References $res, ilDBConstants\FETCHMODE_ASSOC, and getTree().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 15 of file class.ilNestedSetTree.php.
Referenced by deleteTree(), insertNode(), and moveToTrash().
      
  | 
  protected | 
Definition at line 14 of file class.ilNestedSetTree.php.
Referenced by getTree().