Re: [PHP] accessing variables within objects

2008-07-31 Thread Philip Thompson
On Jul 31, 2008, at 1:49 PM, Jim Lucas wrote: Philip Thompson wrote: On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set

Re: [PHP] accessing variables within objects

2008-07-31 Thread Jim Lucas
Philip Thompson wrote: On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set error_reporting(E_ALL); I see messages like Noti

Re: [PHP] accessing variables within objects

2008-07-31 Thread Micah Gersten
Sorry about that, I forgot you got that link already. Here's an answer for you: I use overloading to dynamically call a function in another object if the current object does not have it. It helps because PHP does not support multiple inheritance. Thank you, Micah Gersten onShore Networks Interna

Re: [PHP] accessing variables within objects

2008-07-31 Thread Philip Thompson
On Jul 31, 2008, at 11:48 AM, Micah Gersten wrote: Here's the PHP doc page. Let us know if you have more questions: http://us3.php.net/manual/en/language.oop5.overloading.php Yeah, I got the link the first time and read the page. But I was looking for a little bit more explanation... Thank

Re: [PHP] accessing variables within objects

2008-07-31 Thread Micah Gersten
Here's the PHP doc page. Let us know if you have more questions: http://us3.php.net/manual/en/language.oop5.overloading.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Philip Thompson wrote: > On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: > >> Marten Lehm

Re: [PHP] accessing variables within objects

2008-07-31 Thread Philip Thompson
On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set error_reporting(E_ALL); I see messages like Notice: Undefined property

Re: [PHP] accessing variables within objects

2008-07-30 Thread Micah Gersten
You might want to check the scope of the properties. If you want to access them outside of the class, make sure they are declared public. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Marten Lehmann wrote: > Hello, > > I'm using some php-classes which work

Re: [PHP] accessing variables within objects

2008-07-30 Thread Jim Lucas
Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set error_reporting(E_ALL); I see messages like Notice: Undefined property: FastTemplate::$main in /whereever/inc.templa