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
Using POG to solve real world problems
written 972 days agoWeb application programming often involves designing interesting solutions for real world problems such as creating an elegant and flexible publishing system from the ground up. Textpattern is a wonderful example. However, often, programmers are asked to solve boring solutions such as implementing a feedback/survey form for an existing website. The annoying part of this task is that the programmer has probably designed and implemented many similar solutions in the past, but cannot really reuse the code because each time, there is a slight difference in the requirements, which means that the database tables and php code would have to be different as well.
Php Object Generator helps the programmer solve these annoying tasks fast, so that he/she can concentrate on bigger and hopefully, more interesting ones. For example, let’s say you want to create a feedback/email form using Php Object Generator. You’re given the following data that you need to capture:
First name: Textfield (Varchar255)
Last name: Textfield (Varchar255)
Email address: Textfield (Varchar255)
Street Address: Textfield (Varchar255)
City: Textfield (Varchar255)
State/Province: Dropdown list (Varchar255)
Country: Dropdown list (Varchar255)
To generate the code for this simple web form, fill in the POG form as follows (Note: only 3 object attributes have been filled for demonstration):

click submit and download the generated code:

extract the content of the zip file into a directory and rename the object file. POG automatically sets the filename to a timestamp to avoid confusion:
include all 3 files generated into your project:

Use the class to save, retrieve, update the objects to the database.

This should give you a head start in any php project you undertake since it saves you the pain of having to write SQL queries for all objects and it also saves you from having to test your base code. Happy 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