Received: from harrison.org (harrison.org [207.179.5.74]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3SNc3310851 for ; Sat, 28 Apr 2001 19:38:03 -0400 (EDT) (envelope-from jlarson@harrison.org) Received: (qmail 3192 invoked from network); 28 Apr 2001 17:38:00 -0600 Received: from dhcp-208-187-123-53.avalanchenet.net (HELO CANDLEFIRE) (208.187.123.53) by harrison.org with SMTP; 28 Apr 2001 17:38:00 -0600 Date: Sat, 28 Apr 2001 17:38:14 -0600 From: Jason k Larson X-Mailer: The Bat! (v1.51) Reply-To: Jason k Larson X-Priority: 3 (Normal) Message-ID: <181165689890.20010428173814@harrison.org> To: "Gyozo Papp" CC: "[PHP] PostgreSQL" Subject: Re: inherited method call In-Reply-To: <01d701c0cfd1$da709660$1a49c5d5@jaguar> References: <000b01c0cf30$c86adbc0$0200a8c0@server> <002801c0cf37$90aece60$330a0a0a@rutgersinsurance.com> <01d701c0cfd1$da709660$1a49c5d5@jaguar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200104/55 X-Sequence-Number: 308 I know you can do a few simple things like determine if it's a subclass and get the parent classes name, etc. Here's where I found some info. http://www.php.net/manual/en/ref.classobj.php Maybe this will help .. maybe it won't. Jason k Larson GP> Hello, GP> my question is related to just PHP not postgres, but I hope you'll be so kind to help me. GP> So, how can I call an inherited method which is overriden in the derived class? GP> a short exmple - if my explanation is not so clear to unterstand: GP> class A { GP> var $x; GP> function A() { $this->x = 0; } GP> function f1($x) { $this->x = ++$x; } GP> } GP> class B extends A GP> { GP> function B() {$this->x = 1; } GP> function f1($x) GP> { GP> # now I want to access the original f1() function, ie .: GP> // $this->f1($x*4); GP> # and perform some additional operations ie.: GP> // $this->x *= 2; GP> } GP> } GP> Is there any possilbe work-around GP> or I have to duplicate the code of the inherited function, GP> or leave functions the same and create new functions which calls the inherited ones? GP> ---------------------------(end of broadcast)--------------------------- GP> TIP 5: Have you checked our extensive FAQ? GP> http://www.postgresql.org/users-lounge/docs/faq.html