Search code examples
phpclassnestedsetnested-sets

Searching for the best PHP nested sets class (PEAR class excluded)


I'm looking for a PHP (with MYSQL) nested sets class with all needed functions. For example:

createLeftNode, createRightNode,createRootNode, createSubNode,deleteNode and moveTree. Not only 1 left, 1 right, 1 up and 1 down but also a part of a tree in a nother tree.

Thanks!


Solution

  • Well nested sets are great if you are working with hierarchical data. It's much more complex to implement it only with php arrays especially if you want to save these information in a database.

    you could try this on. Never used it but after a short code screening it looks almost complete.

    http://www.edutech.ch/contribution/nstrees/index.php