[PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
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 what it says. Here's the problem: When I call the instantiate method, it

Re: [PHP] Magic Methods not working

2010-01-26 Thread Eric Lee
On Wed, Jan 27, 2010 at 11:04 AM, Paul M Foster pa...@quillandmouse.comwrote: 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

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: function

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 pa...@quillandmouse.com wrote: I have a class which instantiates other classes, and has a magic method like this: function _get($classname) {        return

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 which