RSS feed - Using POG with Flex
- Optimizing your web application
- Regenerating large objects
- PHP4 or PHP5
- New and Improved
- Evolution of a cube
- POG Museum
- POG 3.0 alpha
- Initial Performance results Part 2
- Initial performance results
- Proposal: POG 3.0 object model
- Suggest a feature
- A new year, A new POG release
- Many-Many relations
- POG 2.5 Released
- POG 2.5 beta
- Automatic table alignment
- New version: 2.1.2 released
- RSS should work well now
- RSS feed glitches
- What's new in 2.1.0
- PHP Objects 2.1.0 (preview)
- PHP Object relations FAQ
- PHP Object Relations
- Searching base64 encoded text
- How to debug POG-generated objects
- POG UI Tips
- Featuring Of Interest links
- PHP CRUD
- POG 2.0.1: A better code generator
- A look at the POG SOAP API
- POG 2.0.0 released
- Coming soon: Generate parent-child objects
- Generated abstraction v/s dynamic abstraction
- Zend Framework preview
- Coming soon: Generate Objects through SOAP
- Easily save images and files to a database
- PHP, Paypal & POG
- Five advanced Code Generator tips
- PHP Pagination using generated objects
- PHP Code Generator benchmarks
- Representing database objects using an AJAX Tree interface
- Using SETUP in a production environment
- Description of the generated object package
- Introducing PHP Object Generator version 1.6
- Using AJAX and PHP Object Generator
- When to use Object->SaveNew()
- Generating PHP objects in 2006
- Happy Holidays
- A short video of the POG Setup process
- A sneak peek at POG 1.6
- POG Tip: Field limits
- Previous versions.
- Searching the blog and tutorials sections
- Generating code with "Other" SQL data types
- Five general POG tips
- POG source code locations
- Microsoft SQL 2005 Express Edition
- Impatiently awaiting PHP 5.1 and PDO
- Php Object Generator goes open source
- POG generates PDO compatible code
- Oracle to offer free database
- POG Google group
- Database Wrappers and POG
- Revisions
- The generator blog
- An explanation of the 'Escape' function.
- Mirror, mirror
- Using POG to solve real world problems
- A php object-relational database tool
- A simple and flexible Object Oriented approach to PHP
Back to the Code Generator
The POG Google group
The POG tutorials/code samples
The POG mirror site
Representing database objects using an AJAX Tree interface
written 830 days agoIf you’ve used POG setup, you’re probably aware by now that we’ve decided to adopt an AJAX Tree to represent the database interface in the setup app. This approach is closer to a debugging interface than the database interface we tested during 1.6 beta. (using a table structure with rows and columns).
There main reason that pushed us towards this decision is that the row/column interface that we were experimenting with during BETA did not scale well enough with objects containing a large number of attributes (>10). Those of you who helped us beta test version 1.6 during January are probably aware that if your objects had many attributes, you had to use the horizontal scroll bar to see all the attributes. Horrible!
The new tree interface (see screenshot below) scales better and is closer to a real “object” representation in debugging interfaces used in IDEs such as Zend Studio.

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!

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