[nycphp-talk] DataObjects generator
Chauncey Thorn
chauncey.thorn at gmail.com
Fri Nov 18 22:43:04 EST 2005
After tweaking the generator, a simple refresh of my browser allows me to
see the output of the script generated and the output from executing each
method in the DataObject. Since this refresh has the database and table info
already and the assoc array - $_POST is still available.
On 11/18/05, Kenneth Downs <ken at secdat.com> wrote:
>
> Have you considered simply dumping out associative arrays that describe
> each table, and then having single library of code that handles them?
> This gives you the flexibility to see the code's efficacy in real-time as
> you work on it -- without having to run the generator for every little
> tweak -- and then having it save cached chunks of HTML as it goes.
>
> > 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/
> > _______________________________________________
> > New York PHP Talk Mailing List
> > AMP Technology
> > Supporting Apache, MySQL and PHP
> > http://lists.nyphp.org/mailman/listinfo/talk
> > http://www.nyphp.org
>
>
> --
> Kenneth Downs
> Secure Data Software
> 631-379-0010
> ken at secdat.com
> PO Box 708
> East Setauket, NY 11733
>
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20051118/13eb6ad8/attachment.html>
More information about the talk
mailing list