Re: Calling parent function with call_user_func_array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);
	}
...


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux