Re: on the subject of overloading: __call()

From: Date: Mon, 18 Nov 2002 16:30:36 +0000
Subject: Re: on the subject of overloading: __call()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-91287@lists.php.net to get a copy of this message
BB>> but there is no way to make equivalent calls using call_user_func() BB>> or call_user_func_array(). you can't use "parent::a_method", BB>> array($this,'parent::a_method'), array(parent,"a_method"), BB>> or array('parent',"a_method"). if you use the literal class name, BB>> call_user_func_array(array(get_parent_class($this),'a_method'), $args); BB>> it doesn't fail, but it's as if you were making a static method call BB>> from outside of an object context - $this is not defined. I fear you lost me here. Is the "a_method" static method or not? If yes - why not pass $this? If not - why do you need $this? I will look into your examples later and respond what I think. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

« previous php.dev (#91287) next »