Re: tree structure class
| From: | Tomas V.V.Cox | Date: | Fri, 12 Oct 2001 11:28:02 +0000 |
| Subject: | Re: tree structure class | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2261@lists.php.net to get a copy of this message | ||
Arjan Wekking wrote:
>
> At 18:13 11-10-2001, Wolfram Kriesing wrote:
> >is there some class which represents a tree structure in php, that is
> >saved in the db?
> >if not i have written one which, if interested, i would like to
> >commit to pear
> >
> >so here is what i have
>
> ..
>
> >i am still working on performance optimization
> >tell me if interested for pear
>
> I'm interested, but there is a better (much faster) way to use trees in an
> SQL database using the 'nested-set model'. It's on my to-do list to create
> a simpler PHP 'api' to use this nested-set model, maybe you would like to
> take a look at it and implement it?
We have implemented it for the Pear web. See
pearweb/include/pear-database.php for the code. I'm interested also in a
class that could manage this easily, the "visitation model" is cool.
Tomas V.V.Cox