PHP Classes

Joe Celko Nested Sets: Manage tree database structure with Celko approach

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 47%Total: 3,493 All time: 963 This week: 488Up
Version License Categories
celkonestedset 1.0GNU General Publi...Algorithms, Databases, Data types
Description 

Author

This class is meant to manage tree database structure using Jeo Celko's nested sets approach.

You can add node with 7 queries, delete a node with subnodes with 4 queries and move node with 11 queries.

The number of queries per action does not depend on the number of sub-nodes, so it is a scalable solution.

Picture of Filippo Toso
Name: Filippo Toso <contact>
Classes: 20 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file ccelko.php Class CCelkoNastedSet class file
Accessible without login Plain text file sample.php Example Sample file for CCelkoNastedSet class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,493
This week:0
All time:963
This week:488Up
 User Ratings  
 
 All time
Utility:69%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:52%StarStarStar
Tests:-
Videos:-
Overall:47%StarStarStar
Rank:3096