JTableNested::getPath
Method to get an array of nodes from a given node to its root.
Signature
public function getPath([integer
$pk = null,
[boolean
$diagnostic = false]] )
Parameters
-
$pk
- Primary key of the node for which to get the path.
-
$diagnostic
- Only select diagnostic data for the nested sets.
Returns
- mixed
- An array of node objects including the start node.
Errors/Exceptions
-
RuntimeException
- on database error