1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Fixed typo in the docs

This commit is contained in:
romanb 2007-09-05 16:14:08 +00:00
parent a478dfa4fd
commit 543cd86f74

View File

@ -176,7 +176,7 @@ $numDescendants = $record->getNode()->getNumberDescendants(); // returns the num
getDescendants() and getAncestors() both accept a parameter that you can use to specify the "depth" of the resulting branch. For example getDescendants(1) retrieves only the direct descendants (the descendants that are 1 level below, that's the same as getChildren()). In the same fashion getAncestors(1) would only retrieve the direct ancestor (the parent), etc. getAncestors() can be very useful to efficiently determine the path of this node up to the root node or up to some specific ancestor (i.e. to construct a breadcrumb navigation).
++++ Simply Example: Displaying a tree
++++ Simple Example: Displaying a tree
<code type="php">
...