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

后端 未结 6 1936
不知归路
不知归路 2020-12-09 06:51

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

createLeftNode, createRightNode,createRootNode, createSubNode,deleteNod

6条回答
  •  死守一世寂寞
    2020-12-09 07:08

    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

提交回复
热议问题