JTableNested::rebuild
Method to recursively rebuild the whole nested set tree.
Signature
public function rebuild([integer
$parentId = null,
[integer
$leftId = 0,
[integer
$level = 0,
[string
$path = '']]]] )
Parameters
-
$parentId
- The root of the tree to rebuild.
-
$leftId
- The left id to start with in building the tree.
-
$level
- The level to assign to the current nodes.
-
$path
- The path to the current nodes.
Returns
- integer
- 1 + value of root rgt on success, false on failure
Errors/Exceptions
-
RuntimeException
- on database error.