Re: Contributing / DB_Object
| From: | MARTY Fabien | Date: | Mon, 29 Apr 2002 22:50:26 +0000 |
| Subject: | Re: Contributing / DB_Object | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5904@lists.php.net to get a copy of this message | ||
(Alan)
> you may want to look at
>
>
> http://www.akbkhome.com/Projects/db_oo+-+an+object+based+Sql+builder+and+wr
>apper+for+peardb/usage.html
> I'm still trying to get more docs up, but this design is more object
> based, most of the methods take no arguments, and usually no more than
> two are in the core class..
> IMO the design you had is not really taking much advantage of
> class/objects, rather just wrapping functions in classes.. (but I'm no
> expert :)
You are right. But in my case, I don't really need to advantages of
class/object. Maybe, i can add a constructor in order to remove the $db from
the arguments of methods. But... in the most of uses, it add one line to
write for user.
But I'm very surprised by the class db_oo. It seems to be excellent (when i
look to the examples). Why is this class not in PEAR CVS ??? Why is this
class not in PEAR packages ??? Is there a roadmap for PEAR (Thinks to do...)
? And who decides to add a new package or even a new cvs account ?
Fabien, who has maybe worked for nothing :-(
(fabien.marty@free.fr)