Re: Contributing / DB_Object
| From: | Tomas V.V.Cox | Date: | Wed, 01 May 2002 17:21:34 +0000 |
| Subject: | Re: Contributing / DB_Object | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5938@lists.php.net to get a copy of this message | ||
MARTY Fabien wrote:
>
> (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).
Very nice class indeed. I could share some code to add AND/OR SQL
functionality. My fear with that classes is the support for JOIN/UNIONs,
do that class support them?
> Why is this class not in PEAR CVS ??? Why is this
> class not in PEAR packages ???
Alan is always welcome to suggest the class for being part of PEAR and
get his CVS account if he already don't have one :)
> Is there a roadmap for PEAR (Thinks to do...)
> ?
There is a TODO file under the pear/ module. Note that is only related
to the infrastucture, not the classes as that is a matter of the author.
BTW I remember someone wanting to implement this functionally for the
PEAR Web.
> And who decides to add a new package or even a new cvs account ?
>
We in pear-dev. I recommend you to read the FAQ at
http://pear.php.net/faq.php.
Tomas V.V.Cox