NYCPHP Meetup

NYPHP.org

[nycphp-talk] DataObjects generator

Chauncey Thorn chauncey.thorn at gmail.com
Fri Nov 18 18:25:21 EST 2005


I've developed a tool that creates a DataObject for each table I have in my
MySQL database. When the script is executed against a particular table it
generates a script containing OO code with a number of methods defined by
default e.g. set_/get_ , getAll, get, insert, delete, update, and a error
method.

It has also been fun finding ways to use the DataObjects. As a result, I
have put together a couple of examples;
Using a single DataObject : http://cthorn.com/oodbigen/usingdataobject.php
MVC wrapper for the DataObjects : http://cthorn.com/oodbigen/mvcwrapper.php

Hope someone finds this useful. Feedback welcomed..

Chauncey Thorn
PHP App. Developer
email: chaunceyt at gmail dot com
url: http://www.cthorn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20051118/3cfc1743/attachment.html>


More information about the talk mailing list