Searching for the best PHP nested sets class (PEAR class excluded)(寻找最好的 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 类除外)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:寻找最好的 PHP 嵌套集类(PEAR 类除外)
基础教程推荐
- PHP 类:全局变量作为类中的属性 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何替换eregi() 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
