admin wrote:
> Jochem Maas wrote:

...

>>
>> the 'callback' type has a number of forms:
>>
>> 'myFunc'
>> array('className', 'myMeth')
>> array(self, 'myMeth')
>> array(parent, 'myMeth')
>> array($object, 'myMeth')
>>
>> self and parent adhere to the same 'context' rules when used in
>> call_user_func*()
>> as when you use them directly - whether $this is present within the
>> scope of the
>> called method is essentially down to whether the method being called
>> is defined as
>> static or not. AFAIK call_user_func*() respects PPP modifiers and
>> works transparently
>> with regard to access to the relevant object variable ($this)
>>
> 
> This undocumented (?) feature is fairly nice.

it is documented - where do you think I find out about it?

> Unfortunately there's no $this outside the class.

this seems painfully obvious - not sure why this is a problem
it's not like $this is javascript.

> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to