Re: [PHP] Calling parent function with call_user_func_array
- From: me@xxxxxxxxxx (Tommy Baggett)
- Date: Thu, 29 Nov 2007 18:22:17 -0600
On Nov 29, 2007, at 5:30 PM, Jochem Maas wrote:
does this work:?
call_user_func_array(array(parent,'doSomething'),$args);
It doesn't work with PHP 4. I was going to try PHP5 on my development machine but I will need to do some configuration editing first.
Here's the exact code I tried:
class Walker_NavBar extends Walker {
....
function walk($elements, $to_depth) {
$args = func_get_args();
....
// call base class implementation
return call_user_func_array(array(parent,'walk'),$args);
}
....
- Follow-Ups:
- Re: [PHP] Calling parent function with call_user_func_array
- From: "Nathan Nobbe"
- Re: [PHP] Calling parent function with call_user_func_array
- References:
- RE: [PHP] Calling parent function with call_user_func_array
- From: "Tommy Baggett"
- Re: [PHP] Calling parent function with call_user_func_array
- From: Jochem Maas
- RE: [PHP] Calling parent function with call_user_func_array
- Prev by Date: Re: [PHP] Dynamic Display of Images Stored in DB
- Next by Date: Re: [PHP] Calling parent function with call_user_func_array
- Previous by thread: Re: [PHP] Calling parent function with call_user_func_array
- Next by thread: Re: [PHP] Calling parent function with call_user_func_array
- Index(es):