| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 9x Winner: 1x | |||||||||||||||||||
| Classes of Tom Schaefer | > | Closure Table | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | ||||||
| Applications | Related links | |||||
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Databases | Database management, accessing and searching | View top rated classes | |
| Data types | Modeling and manipulating data types | View top rated classes |
| Innovation Award | ||
![]() July 2009 Number 8 Prize: One book of choice by Manning |
Databases are often used to store records of information that are related in ways that form hierarchic trees and other types of graphs. There are solutions to manipulate sets records that form these types of graph, like the Joe Celko's nested sets. However, such solutions require that you have additional fields in the records to store information about the graph structures. Using closure tables is a different approach that consists in using separate tables to store graph structural information. This class implements an API that manages closure tables in PHP. It can be used to manage graphs of records of information created by existing PHP applications without changing the code that manages the application table records. Manuel Lemos |
| User ratings | ||
| There are not enough user ratings to display for this class. |
| Applications that use this class | ||
| Related links | ||
| Link | Description |
|---|---|
| Closure Table by Bill Karwin | A good starting point for getting basic knowledge |
| A bit deeper | Vadim Tropashko explains it |
| Transitive Closure | This article is about the transitive closure of a binary relation. |
| Transitive Closures | Another hook to get info about it |
| File | Role | Description | ||
|---|---|---|---|---|
| Aux. | load classes | |||
| Doc. | Readme | |||
| Data | sample db layout | |||
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Icon | delete |
| |
Icon | delete tree |
| |
Icon | delete tree unselect |
| |
Icon | move down |
| |
Icon | move down unselect |
| |
Icon | move left |
| |
Icon | move left unselect |
| |
Icon | move right |
| |
Icon | move right unselect |
| |
Icon | move up |
| |
Icon | move up unselect |
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Class | Closure Table Wrapper |
| |
Class | Closure Table Base |
| |
Class | Create Table Class |
| |
Class | Closure Table Delete |
| |
Class | Closure Table Insert |
| |
Class | interface for db class |
| |
Class | Closure Retrieve Data |
| |
Class | Various Tree Sort Operations |
| |
Class | Sample Db Adapter - very basic |
| |
Aux. | autoloader |
| Files | / | Tool | / | |||
| File | Role | Description |
|---|---|---|
| |
Aux. | autoloader |
| |
Class | Demo Helper Tool for visualizing a ul-tree |
| Files | / | samples | / | |||
| File | Role | Description |
|---|---|---|
| |
Conf. | config sample |
| |
Example | sample |
| |
Example | sample |
| Download all files: closuretable.tar.gz closuretable.zip |