PhpRiot
Download 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

As Linux increases its presence throughout the world as a target platform for professional...
PhpRiot Newsletter
Your Email Address:

More information

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


Article History

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