Re: Calling parent function with call_user_func_array
| From: | Jochem Maas | Date: | Thu, 29 Nov 2007 23:30:40 +0000 |
| Subject: | Re: Calling parent function with call_user_func_array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265265@lists.php.net to get a copy of this message | ||
Tommy Baggett wrote:
> Thanks for taking the time to reply.
>
> I'm working on a Wordpress theme and extending one of their existing
> classes (the Walker class if you're familiar with WP). Since WP still
> supports PHP4, my theme needs to as well.
I know WP, don't like the code too much - but you have a good reason to
be writing for php4 :-)
did my guess work?
...
> does this work:?
>
> call_user_func_array(array(parent,'doSomething'),$args);
>
> it's an educated guess, no garantees.
>
>> }
>> }
>>
>> Thanks in advance for any help!
>>
>