Re: Re: Datagrid and linking dataobjects
| From: | Larry Garfield | Date: | Thu, 20 Jan 2005 21:57:11 +0000 |
| Subject: | Re: Re: Datagrid and linking dataobjects | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17056@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On Thu, 20 Jan 2005 09:01:36 -0800, Jamie Alessio <Jamie.Alessio@ucop.edu> wrote: [snip]In my case, because for unknown reasons I get a class not found error returned whenever I use factory() but new works fine. And I've not yet figured out what if anything is the advantage of using one over the other. :-) What is the advantage of using factory() instead of new anyway? -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson$obj1 = new DataObject_X; $obj2 = new DataObject_Y;[snip] OT: *Why* does everyone use new with DataObjects? Why not use DB_DataObject::factory()?