Call overridden methods with call_user_function_ex()
| From: | Klaus Reimer | Date: | Mon, 11 Mar 2002 17:40:41 +0000 |
| Subject: | Call overridden methods with call_user_function_ex() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81024@lists.php.net to get a copy of this message | ||
Hi,
I have written an simple extension module with two classes. Class A
implements the Method dosomething(). Class B is derived from Class A and
overrides the method dosomething(). Now I want the overridden method in Class
B to call the original method from Class A. How can I do this with
call_user_function_ex()? This is easy for constructors, because the
constructor of class B has a different name then the constructor of class A,
but if I try this with a normal method I have to specify WHICH incarnation of
the method should be called or otherwise I get a loop. How can I do this?
--
Bye, K <http://www.ailis.de/~k/>
[A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391]
(Finger k@ailis.de to get public key)