Re: DB_DataObject Can getLink() return child class of DB_DataObject

From: Date: Fri, 01 Apr 2005 00:13:01 +0000
Subject: Re: DB_DataObject Can getLink() return child class of DB_DataObject
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18451@lists.php.net to get a copy of this message
On Thu, 31 Mar 2005 16:00:15 -0800, Ben Ford <ben@naturestears.com> wrote: > > 1) If your toString method is heavily dependant on the table you're > > getting the string for, put a special toString method in each table's > > class which does what it needs to do. It's perfectly fine to edit an > > auto-generated class as long as you leave the stuff between the > > autogenerated markers alone. > > > Yes, I was originally trying not to edit the auto-generated classes. (I > am using PHP 5 objects and the auto-generated are PHP 4 style. I suppose > I didn't want to mix syntax and it I wanted to use PHP 5. In the end, > who cares though.) Regenerate them. The newer versions of DB_DataObject will use PHP5 syntax when you use the generator in PHP5. :-) -- Justin Patrin

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