Re: Errors using DB_NestedSet_TreeMenu with getSubBranch
| From: | Daniel Khan | Date: | Mon, 01 Mar 2004 07:21:40 +0000 |
| Subject: | Re: Errors using DB_NestedSet_TreeMenu with getSubBranch | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11025@lists.php.net to get a copy of this message | ||
Hello Konrad,
Konrad Riedel wrote:
But the output of getSubBranch() isn't ordered by level, which is required by function &_createFromStructure($params) in NestedSet/TreeMenu.php.Did you set a sorting mode? Which? NESE_SORT_LEVEL is the default. NESE_SORT_PREORDER returns the tree preorder sorted. The output drivers rely on NESE_SORT_LEVEL for now, so you have to set/reset the sorting mode before calling getSubBranch(). hth -- Daniel Khan