寻找最好的 PHP 嵌套集类(PEAR 类除外) [英] Searching for the best PHP nested sets class (PEAR class excluded)

查看:21
本文介绍了寻找最好的 PHP 嵌套集类(PEAR 类除外)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个包含所有必需功能的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆