ILIAS
Release_5_0_x_branch Revision 61816
|
Base class for materialize path based trees Based on implementation of Werner Randelshofer. More...
Public Member Functions | |
__construct (ilTree $a_tree) | |
Constructor. | |
getTree () | |
Get tree object. | |
getSubTreeIds ($a_node_id) | |
Get subtree ids. | |
getRelation ($a_node_a, $a_node_b) | |
Get relation of two nodes. | |
getSubTreeQuery ($a_node, $a_types= '', $a_force_join_reference=true, $a_fields=array()) | |
Get subtree query. | |
getPathIds ($a_endnode, $a_startnode=0) | |
Get path ids. | |
insertNode ($a_node_id, $a_parent_id, $a_pos) | |
Insert new node under parent node. | |
deleteTree ($a_node_id) | |
Delete a subtree. | |
moveToTrash ($a_node_id) | |
Move subtree to trash. | |
moveTree ($a_source_id, $a_target_id, $a_position) | |
move source subtree to target node | |
getSubtreeInfo ($a_endnode_id) | |
Get subtree info lft, rgt, path, child, type. |
Static Public Member Functions | |
static | createFromParentReleation () |
Protected Member Functions | |
getMaximumPossibleDepth () | |
Get maximum possible depth. |
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().
|
staticprivate |
Definition at line 473 of file class.ilMaterializedPathTree.php.
Referenced by createFromParentReleation().
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().
|
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().
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().
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().
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().
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().
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.
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.
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.
|
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().