搜索最佳PHP嵌套集类(排除PEAR类) [英] Searching for the best PHP nested sets class (PEAR class excluded)
问题描述
我正在寻找一个PHP(有MYSQL)嵌套集类和所有需要的功能。
例如:
I'm looking for a PHP (with MYSQL) nested sets class with all needed functions. For example:
createLeftNode,createRightNode,createRootNode,createSubNode,deleteNode和 moveTree 。
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.
谢谢!
推荐答案
如果你使用分层数据,那么很好的嵌套集是很好的。更复杂的是只用php数组来实现它,特别是如果你想把这些信息保存在数据库中。
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
这篇关于搜索最佳PHP嵌套集类(排除PEAR类)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!