Previously on the blog
RSS feed
  1. Using POG with Flex
  2. Optimizing your web application
  3. Regenerating large objects
  4. PHP4 or PHP5
  5. New and Improved
  6. Evolution of a cube
  7. POG Museum
  8. POG 3.0 alpha
  9. Initial Performance results Part 2
  10. Initial performance results
  11. Proposal: POG 3.0 object model
  12. Suggest a feature
  13. A new year, A new POG release
  14. Many-Many relations
  15. POG 2.5 Released
  16. POG 2.5 beta
  17. Automatic table alignment
  18. New version: 2.1.2 released
  19. RSS should work well now
  20. RSS feed glitches
  21. What's new in 2.1.0
  22. PHP Objects 2.1.0 (preview)
  23. PHP Object relations FAQ
  24. PHP Object Relations
  25. Searching base64 encoded text
  26. How to debug POG-generated objects
  27. POG UI Tips
  28. Featuring Of Interest links
  29. PHP CRUD
  30. POG 2.0.1: A better code generator
  31. A look at the POG SOAP API
  32. POG 2.0.0 released
  33. Coming soon: Generate parent-child objects
  34. Generated abstraction v/s dynamic abstraction
  35. Zend Framework preview
  36. Coming soon: Generate Objects through SOAP
  37. Easily save images and files to a database
  38. PHP, Paypal & POG
  39. Five advanced Code Generator tips
  40. PHP Pagination using generated objects
  41. PHP Code Generator benchmarks
  42. Representing database objects using an AJAX Tree interface
  43. Using SETUP in a production environment
  44. Description of the generated object package
  45. Introducing PHP Object Generator version 1.6
  46. Using AJAX and PHP Object Generator
  47. When to use Object->SaveNew()
  48. Generating PHP objects in 2006
  49. Happy Holidays
  50. A short video of the POG Setup process
  51. A sneak peek at POG 1.6
  52. POG Tip: Field limits
  53. Previous versions.
  54. Searching the blog and tutorials sections
  55. Generating code with "Other" SQL data types
  56. Five general POG tips
  57. POG source code locations
  58. Microsoft SQL 2005 Express Edition
  59. Impatiently awaiting PHP 5.1 and PDO
  60. Php Object Generator goes open source
  61. POG generates PDO compatible code
  62. Oracle to offer free database
  63. POG Google group
  64. Database Wrappers and POG
  65. Revisions
  66. The generator blog
  67. An explanation of the 'Escape' function.
  68. Mirror, mirror
  69. Using POG to solve real world problems
  70. A php object-relational database tool
  71. A simple and flexible Object Oriented approach to PHP


Want more Php Object Generator?
Back to the Code Generator
The POG Google group
The POG tutorials/code samples
The POG mirror site




POG source code locations

written 4149 days ago

If all you want is generate php code and be on your way, don’t worry about this article. Use POG as usual, nothing to worry about.

However, if you’re a POG enthusiast interested in extending/improving POG or installing the code generator on your own machine, you can access the POG source code either from:

  1. the POG Sourceforge project page
  2. the POG Subversion Repository (username:guest, no password)

The main difference between the 2 repositories is that we generally update the code on Sourceforge only when there’s a significant release.

The Subversion repository, on the other hand, is updated more regularly and contains the latest revision of POG. If you want the latest and greatest and don’t mind if things haven’t been tested fully, then the subversion code is for you.

To download from Subversion, you’ll need svn (for most Unix-based systems, including OS X), or Tortoise SVN (Windows)

To download the sourcecode using svn
svn—username guest export http://subversion.phpobjectgenerator.com/svn/repository/pog path-to-your-directory-for-pog

To download the sourcecode using Tortoise
In Windows Explorer, right-click on a directory, and select TortoiseSVN->Export
For URL of repository, use http://subversion.phpobjectgenerator.com/svn/repository/pog
(username:guest, no password)


The file index3.php does not appear to be finished:

The line that reads:
$data = file_get_contents("./configuration_factory/configuration.".$pdoDriver.".php");

Probably should read:

$data = file_get_contents("./configuration_factory/configuration.". $_SESSION['pdoDriver'].".php");

I checked out the svn repository because I could not get the setup and object directories inclued in the zip file as the tutorial describes.

Also, i noticed, the section “Manage objects” in the setup doesn’t handle medium_text and long_text. This would be really neat, I think I can add that.

Cool app anyways :)

Regards,
Vegard
The-eh    Jan 19, 09:05 AM    #

Thanks Vegard. Incidentally, this fix has already been made but hadn’t been checked in. Now it has.

You’re correct: currently, the tutorials are valid for version 1.6 which can be accessed at http://beta.phpobjectgenerator.com. The beta subdomain is updated from the svn repository daily.

Finally, we’re redesigning the Manage objects section in the setup process right now, and that’s why 1.6 hasn’t been released yet. The main deficiency of the current design is that it does not scale well enough with large objects.

Anyways, thanks for the feedback. We appreciate it.
Joel    Jan 19, 09:24 AM    #

Great job.

BTW The sourceforge project page seems to still only have the 2.1.0 release


Andrej    Aug 28, 03:19 PM    #

Correct,
sourceforge is only updated when major versions are released. e.g. 2.1, 2.2

minor versions can be obtained from SVN


PogGuys    Aug 28, 04:50 PM    #

Maybe you can add the default values for the fields, and then set this default values in the arguments of the constructor.

Really nice work,
Best Regards,
Pedro


Pedro de la Lastra    Mar 17, 03:43 PM    #

Hey, this is a very nice idea well executed. My one issue with it is that the code is completely susceptible to SQL injection attacks and is therefore quite insecure (in my view).

A great improvement would be to bind parameters to prepared SQL statements to ensure that injections can’t occur.


Doug    Oct 12, 05:27 AM    #

I have been trying to set POG in XAMPP so that I can generate objects when I am not connected to the internet. I disabled the phpsoap extension and modified the pog.wsdl so that it would go to my local machine. What am I doing wrong?


Abe    Feb 20, 08:32 AM    #

  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