- Introduction to POG
- Setting up PHP, MySQL etc.
- Designing your objects
- Generating your code
- Description of the generated code
- Edit configuration file
- The Setup Process
- Using the code: Save()
- Using the code: Get()
- Using the code: SaveNew()
- Using the code: GetList()
- Using the code: Delete()
- Using the code: DeleteList()
- Advanced: object relations
- Advanced: Set{Parent}()
- Advanced: Get{Parent}()
- Advanced: Add{Child}()
- Advanced: Get{Child}List()
- Advanced: Save(deep)
- Advanced: Delete(deep)
- Advanced: Add{Sibling}()
- Advanced: Set{Child}List()
- Advanced: Set{Sibling}List()
- Advanced: Get{Sibling}List()
- Advanced: DeleteList(deep)
- Customizing POG-generated code
- Customizing: Extending POG Objects
- Customizing: Plugins
- Examples
- Examples: User registration system
- Examples: User authentication
- Examples: Survey form
- Examples: Using POG with AJAX
- PDO: Introduction
- PDO: SQLite example
- PDO: Firebird example
- PDO: PostgreSQL example
- PDO: MySQL example
- PDO: ODBC example
- Troubleshooting
- Troubleshooting: Data appears encoded
- Troubleshooting: Can't regenerate object
- Troubleshooting: Can't seem to Save()
- Troubleshooting: Can't get object / object attributes from database
- Troubleshooting: Can't open zip file on Mac
- Troubleshooting: Setup screen is blank
- Videos
- Appendix: Creating table(s) manually
- Appendix: Regenerating objects
- Appendix: Generating objects using SOAP
- Case Study: Gravity GTD
- Case Study: Web Form Factory
Back to the Code Generator
The POG Weblog and RSS feed.
The POG Google group
Description of the generated code
The code generated by Php Object Generator is very simple yet powerful. Every object class is generated with 6 CRUD methods. CRUD methods are powerful enough to handle most of the operations that would be needed in a web application because they allow you to perform atomic operations such as Save, Delete, Get, Update. If having advanced SQL queries is critical to your application, you can always extend the code generated by POG.
There are 3 main ways to modify the code provided by POG:
1. Manual modification of the object classes (generally not recommended).
2. Extending the objects by creating superclasses (recommended)
3. Create or download POG plugins. (recommended)
However, in 90 percent of the cases, you’ll find that the CRUD methods are enough for a fully operational web app.
The 6 CRUD methods generated by POG are:
Along with the object(s), POG also generates a Setup app which resides in the setup directory. This setup ‘app’ does 4 things:
- Provides instructions
- Automatically creates tables for the generated objects, if needed. If objects are modified at any point in the project lifecycle, running setup will align the tables with the modified objects.
- Tests the configuration file and performs unit tests on the object files.
- If all tests pass, provides a central interface to all generated objects within the database.
Finally POG also generates a plugins folder which contain POG plugins that further increases POG objects’ functionality. More on plugins later…
Proceed to next step of the tutorial ››


