Re: DB_NestedSet getBranch
| From: | Alain Petignat | Date: | Fri, 26 Sep 2003 15:49:53 +0000 |
| Subject: | Re: DB_NestedSet getBranch | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8067@lists.php.net to get a copy of this message | ||
Hello Arnaud
Arnaud Limbourg wrote:
I noticed that getBranch returns same-level nodes. Is this intentional ? I was expecting getBranch to return ... a branch ;) I mean, root is 1, 36 and 40 are on the same level, 37 38 and 39 are children of each other (39 is child of 38 which is child of 37) Running a getBranch on node 39 returns 1, 36, 40, 37, 38, 39 36 and 40 are both on level 2. I was expecting 1, 36, 37, 38, 39 since this composes a branch.Have a look at the getParents()-Method, i think that's what you need, as far as i am interpreting your thoughts :) Nice documentation you'll find at http://oss.webcluster.at/APIDOC/ hth alain.