|
Posted by Jon on 01/23/06 01:33
On 2006-01-22 16:10:43 -0600, "Janwillem Borleffs" <jw@jwscripts.com> said:
> Jon wrote:
>> In PHP4 i get an error stating that the $query= self::query line
>> contains an "Undefined class name 'self'"
>>
>> how, in general, can I take this and make it php4 compatible?>
>
> When the class is instantiated, simply replace "self::" with "$this->";
> when used statically, replace it with "ClassName::".
>
>
> JW
Thanks for your post, I think this will be immesly helpful. Now, one
last question to set me straight. How can I tell when a class is
instantiated vs. statically?
Thanks a bunch!
jon
Navigation:
[Reply to this message]
|