CatDisplayCategoryTable::rebuildNestedSetForNode Method
Rebulids the nested set values for the whole subtree rooted at the given node.
Syntax
client server public static real rebuildNestedSetForNode(CatDisplayCategoryTable _currNode, real _lv4curr)
Run On
Called
Parameters
- _currNode
Type: CatDisplayCategoryTable Table
The root node of the subtree to rebuild.
- _lv4curr
Type: real
The left value to use in the root node of the subtree to rebuild.
Return Value
Type: real
The right value to use in the root node of the subtree during the rebuild.
Remarks
The ParentCategory field in the nodes must have been correctly set.
Note: the caller should wrap the call to this method inside a transaction context.
If this method is called by the insert method, the insert method must have called the super method. This means the records are already in the database. The doUpdate method is called on all nodes as part of the build.