API17:JTableNested::getTree
From Joomla! Documentation
JTableNested::getTree
Description
Method to get a node and all its child nodes.
public function getTree (
$pk=null
$diagnostic=false
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $pk | integer | null | Primary key of the node for which to get the tree. |
| $diagnostic | boolean | false | Only select diagnostic data for the nested sets. |
- Returns mixed Boolean false on failure or array of node objects on success.
- Defined on line 145 of libraries/joomla/database/tablenested.php
- Since

See also
JTableNested::getTree source code on BitBucket
Class JTableNested
Subpackage Database- Other versions of JTableNested::getTree
User contributed notes
Code Examples