Re: [PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 07:21:34PM -0800, Daevid Vincent wrote: > > -Original Message- > > From: Paul M Foster [mailto:pa...@quillandmouse.com] > > Sent: Tuesday, January 26, 2010 7:05 PM > > To: php-general@lists.php.net > > Subject: [PHP] Magic Methods not working > > > > I have a class

Re: [PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
On Wed, Jan 27, 2010 at 11:19:34AM +0800, Eric Lee wrote: > > > On Wed, Jan 27, 2010 at 11:04 AM, Paul M Foster > wrote: > > I have a class which instantiates other classes, and has a magic method > like this: > > function _get($classname) > { >        return $this->instan

RE: [PHP] Magic Methods not working

2010-01-26 Thread Daevid Vincent
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: Tuesday, January 26, 2010 7:05 PM > To: php-general@lists.php.net > Subject: [PHP] Magic Methods not working > > I have a class which instantiates other classes, and has a > magic method > like this: > >

Re: [PHP] Magic Methods not working

2010-01-26 Thread Eric Lee
On Wed, Jan 27, 2010 at 11:04 AM, Paul M Foster wrote: > I have a class which instantiates other classes, and has a magic method > like this: > > function _get($classname) > { >return $this->instantiate($classname); > } > > Obviously, the class also has an instantiate method which does wha