[dev] Re: [cvs] commit: horde/lib Tree.php

Marko Djukic marko at oblo.com
Sun Feb 23 15:54:34 PST 2003


well with the tree class i committed i went with a simple array structure:
array( node_id => array( 'label' => somelabel,
                         'indent' => 3,
                         'parent' => somenode_id,
                         whatever other elements...
                         .....))

maybe it has shortcomings that i have not foreseen, but it makes for easy
navigation, and is much simpler to handle than the x => ..., y => ... type array
in CATEGORY_FORMAT_3D... for example for the giapeto admin i have to pull out
the site tree, trim off the pages that the user doesn't have permissions to, and
 tack onto pages more nodes to represent permissions, users etc.
i couldn't figure out how to do it in a sane manner with the CategoryTree and
the CATEGORY_FORMAT_3D. so was wondering if this method it has some advantage
that i'm not seeing.

m.

Quoting Chuck Hagenbuch <chuck at horde.org>:

> Quoting Marko Djukic <marko at oblo.com>:
> 
> > on that subject, what are the advantages of the CATEGORY_FORMAT_3D
> > format?
> 
> As opposed to what, exactly?
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck at horde.org>
> must ... find ... acorns ... *thud*
> 
> --
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
> 




More information about the dev mailing list