PhpRiot
Download This Article
Download this article or the entire “Implementing An N-Level Nested Tree In PHP And PostgreSQL” series with all listings and files.




More information
Related Books
Professional Linux Programming

Professional Linux Programming

By tapping the strengths of the open-source movement, developers can write custom Linux software...
Browse Articles
Ajax (4), APC (1), CAPTCHA (1), CSS (3), Debugging (1), File Upload (1), Google (3), Google Maps (2), JavaScript (10), JSON (2), MVC (1), MySQL (6), onbeforeunload (1), OOP (1), PHP (27), PhpDoc (1), PostgreSQL (6), Prototype (9), Reflection (1), RFC 1867 (1), Robots (1), Scriptaculous (1), SEO (1), Sessions (1), SimpleXML (1), Smarty (5), SOAP (1), SPL (1), Templates (2), W3C (1), XHTML (1), Zend Framework (1), Zend_Search_Lucene (1)

PhpRiot Newsletter
Your Email Address:

Implementing An N-Level Nested Tree In PHP And PostgreSQL Appendix

This article is part of the series “Implementing An N-Level Nested Tree In PHP And PostgreSQL”. Implementing An N-Level Nested Tree In PHP And PostgreSQL. Read more about Implementing An N-Level Nested Tree In PHP And PostgreSQL...

Introduction

Since creating the second part of the Nested Tree series, I’ve done further work on the nested tree class.

This appendix article is not officially part of the “3 part series”, but it is an addon article which may be continually updated with new ideas and snippets to include in the NestedTree class. The reason these have been kept separate is because they are not core to the concept of implementing nested trees in your web site.

Hopefully this article will continually be updated with new ideas, and at some point may be split into multiple articles below this one.

For further reading on nested trees, see the other articles in the series:

  1. Theory behind the nested tree model. How it all works and how to look up data
  2. Implementing the model in PHP and PostgreSQL
  3. Using the model in a real-world web application

In This Article


Tagged in , ,

Article History

May 11, 2005
Initial article version
Jan 16, 2008
Updated getImmediateFamily() method to correctly reference the $fields property