- 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
Appendix: Regenerating objects
Imagine that you use POG to generate a number of classes for a fairly large web app. Four months later, the application has had some success, but there are new features that need to be implemented, classes that need to be extended, attributes that need to be added.
That's the scenario we encountered one day and you just might too. Sure, if this happens to you, you can always go back to the POG homepage and generate all your classes from scratch. But what if you could simply click on a link and your browser takes you to the main page and all your attributes have been populated for you?
POG provides 2 easy ways of regenerating objects:
Method #1: In Step 3 of the Setup process, you should see a "regenerate table" button which looks like this:
Clicking on this button will take you to the POG website and all the fields and attribute fields will be prepopulated for you.
Method #2: Look in the header of your object code. You'll see an @link line in the header comment. It should look something like this:
If your editor supports it, click on this link and your browser will take you to the main Php Object Generator homepage with all your chosen settings prefilled for you. You can also simply copy this URL and paste it in your browser if you can't click on it from your PHP editor.


