To dynamically generate this Tree View, we use xPandMenu, an open source PHP tree library offered by Patrick Brosset under the BSD license. We had to extend the xPandMenu library to accommodate for some POG-related business rules. For example, if an object in the list is deleted, all objects below it are shifted up by 1 and all node states (expanded or collapsed) are preserved. We also used AJAX to communicate with the xPandMenu library to improve the overall responsiveness of the interface. As a refresher, there’s a simple tutorial which demonstrates how to create a simple to-do list using POG and AJAX.

All in all, creating the Tree view interface was an occasion to eat our own dog food and experience how POG actually accelerates PHP database programming. We didn’t have to write a single SQL statement and almost forgot about the database altogether. We’d like to finish this post by thanking Patrick Brosset for providing the xPandMenu library under the BSD license. It saved us many hours of coding!

  Textile Help
About Php Object Generator
This is a weblog about the Php Object Generator (POG) project, OO PHP, databases and Php code generators in general.

Php Object Generator, (POG) is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application.

Subscribe to our RSS feed

Feedback, Feature Requests, Bugs to:
The POG Google group

Send us a Hello through email