Login   Register  
PHP Classes
elePHPant
Icontem

Adjacency Model: Create and manipulate adjacency lists in MySQL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-05-21 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,095 This week: 1All time: 3,170 This week: 1,504Up
Version License PHP version Categories  
adjacency-model 1.1BSD License5.0Algorithms, PHP 5, Databases
Description Author  

This class can be used to create and manipulate adjacency lists in MySQL.

It can perform several types of operations to store and retrieve information in a MySQL table of nodes of an adjacency list.

Currently it can: add nodes, retrieve the list of all nodes, get the children of a given node, change the parent of a node, and delete nodes.

Innovation Award  
PHP Programming Innovation award nominee
May 2010
Number 3


Prize: One book of choice by Packt
Adjacency lists are data structures that define vertex points and edges that connect them.

This class provides a solution for manipulating and storing adjacency lists in a MySQL database.

Manuel Lemos
Picture of Peter Drinnan
Name: Peter Drinnan is available for providing paid consulting. Contact Peter Drinnan .
Classes: 3 packages by
Country: Canada Canada
Age: 48
All time rank: 70719 in Canada Canada
Week rank: 1143 Down21 in Canada Canada Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file adjacency_demo.sql Data Sample MySQL data table structure. Can be modified.
Accessible without login Plain text file example.php Example Examples of adding, appending, renesting and deleting nodes within an adjacency list.
Plain text file adjacency.class.php Class base class with all functions required for adding, removing and renesting ordered items.

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,095All time:3,170
 This week:1This week:1,504Up
 User Comments (1)  
 
Thank you so much Petr, really; thank you
2 months ago (Davide Briscese)
70%StarStarStarStar