问题描述
我正在寻找一个带有所有需要的函数的 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.不仅左 1 右 1 上 1 下,而且是另一棵树中树的一部分.
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 类)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!