Re: Re: Tree : more than one root

From: Date: Sun, 06 Oct 2002 18:52:56 +0000
Subject: Re: Re: Tree : more than one root
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9892@lists.php.net to get a copy of this message
<lists@kriesing.de> wrote : > Bertrand Mansion wrote: >> <lists@kriesing.de> wrote : >> Thanks but I don't think it's what I need. I don't want a new field, the >> class should know that a row where a parent is equal to 0 is a root ? Plus, >> your solution doesn't mix well with the add() method, at least for what I >> want to do. I'll try to make it work in an other way. > > the add-method of course needs the data for this row passed to it too! > is it possible that you have the root and simply start below that? Damn, I didn't think about passing the data in the add method. Thanks for the hint, it now works fine. Still, I believe this can be achieved without a new field but I am glad it's possible to do it like that.. Cheers, Bertrand Mansion Mamasam

« previous php.pear.dev (#9892) next »