Received: from relay.freestart.hu (mx.freestart.hu [213.197.64.3]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3SAt4381301 for ; Sat, 28 Apr 2001 06:55:04 -0400 (EDT) (envelope-from pgerzson@freestart.hu) Received: from jaguar (line-73-26.dial.freestart.hu [213.197.73.26]) by relay.freestart.hu (Postfix) with SMTP id 86FFD2E00 for ; Sat, 28 Apr 2001 12:55:13 +0200 (MET DST) Message-ID: <01d701c0cfd1$da709660$1a49c5d5@jaguar> From: "Gyozo Papp" To: "[PHP] PostgreSQL" References: <000b01c0cf30$c86adbc0$0200a8c0@server> <002801c0cf37$90aece60$330a0a0a@rutgersinsurance.com> Subject: inherited method call Date: Sat, 28 Apr 2001 12:55:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id f3SAt5381304 X-Archive-Number: 200104/48 X-Sequence-Number: 301 Hello, my question is related to just PHP not postgres, but I hope you'll be so kind to help me. So, how can I call an inherited method which is overriden in the derived class? a short exmple - if my explanation is not so clear to unterstand: class A { var $x; function A() { $this->x = 0; } function f1($x) { $this->x = ++$x; } } class B extends A { function B() {$this->x = 1; } function f1($x) { # now I want to access the original f1() function, ie .: // $this->f1($x*4); # and perform some additional operations ie.: // $this->x *= 2; } } Is there any possilbe work-around or I have to duplicate the code of the inherited function, or leave functions the same and create new functions which calls the inherited ones?