Re: Re: Tree : more than one root

From: Date: Sun, 06 Oct 2002 21:34:17 +0000
Subject: Re: Re: Tree : more than one root
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9893@lists.php.net to get a copy of this message
Bertrand Mansion wrote:
<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.
you are welcome ... i know the doc is still missing ... :-) can u explain the usecase a little more detailed so i can picture it better and may be also have that in mind when developing it :-) -- Wolfram ... translating template system ... http://sourceforge.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth

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