ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-general
pear-general
Re: [PEAR] calling a overwritten method???
by Markus Fischer other posts by this author
May 23 2001 6:13PM messages near this date
Re: [PEAR] calling a overwritten method??? | Re: [PEAR] calling a overwritten method???
Hah, its even documented:

http://www.php.net/manual/en/keyword.parent.php

(but doesn't state since when; probably since OO support ? :)

- Markus

On Wed, May 23, 2001 at 07:13:49PM +0200, Wolfram Kriesing wrote : 
>  > You can use parent::foo() syntax.
>  
>  isnt that a static function call?
>  
>  what if i have
>  --------------------------------
>  class A
>  {
>      var $aVar = false;
>      function go()
>  
>  
>          if( $this->aVar == true )
>             do this
>          else
>             do that
>      }
>  }
>  
>  class B extends A
>  {
>     function go()
>     {
>         $this->aVar = true;
>         call parent here...., but how? in the way that he knows the value
>  of $this->aVar
>     }
>  }
>  
>  
>  -- 
>  PEAR General Mailing List (http://pear.php.net/)
>  To unsubscribe, e-mail: pear-general-unsubscribe@[...].net
>  For additional commands, e-mail: pear-general-help@[...].net
>  To contact the list administrators, e-mail: php-list-admin@[...].net
>  

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail:         mfischer@[...].at
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
Thread:
Wolfram Kriesing
Wolfram Kriesing
Markus Fischer
Martin Jansen
Andrei Zmievski
Wolfram Kriesing
Markus Fischer
Andrei Zmievski
Mauricio Souza Lima

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved