Re: extending class then calling its original function
| From: | CC Zona | Date: | Fri, 02 Aug 2002 01:29:15 +0000 |
| Subject: | Re: extending class then calling its original function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110760@lists.php.net to get a copy of this message | ||
In article <200207311804.57143.php-general@gremlins.com.hk>,
php-general@gremlins.com.hk (Jason Wong) wrote:
> On Wednesday 31 July 2002 18:36, lallous wrote:
> > Hello when I extended a class and overwrite a function, can i after
> > overwriting that function call it so it does what it used to do?
> >
> > for example in Delphi I say:
> >
> > procedure TMyExtendedClass.Proc1;
> > begin
> > // do new stuff here
> > inherited; // calls the TMyClass.Proc1;
> > end;
>
> Yes.
$answer.="http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php";
--
CC