Re: DB_DataObject factory class or create instance manually

From: Date: Tue, 31 Aug 2004 21:55:39 +0000
Subject: Re: DB_DataObject factory class or create instance manually
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14352@lists.php.net to get a copy of this message
On Tue, 31 Aug 2004 19:10:41 +0200, Thomas Mammitzsch <smartt@gmx.de> wrote: > hi everybody, > > i want to insert data in a table. Now i'm a bit confused about the > examples in the manual. > > should i use the factory method of DB_DataObject to create an instance > of my DataObject_table or should i create the instance manually as > described in the manuals ->insert() function? As Michael said, it's a matter of taste, but the preferred method is to always use factory() when creating a DataObject instance. You can then leave out the extra include calls for those objects. ;-) > > regards, Thomas > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.pear.general (#14352) next »