Re: calling a overwritten method???
| From: | Markus Fischer | Date: | Wed, 23 May 2001 18:13:15 +0000 |
| Subject: | Re: calling a overwritten method??? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-165@lists.php.net to get a copy of this message | ||
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@lists.php.net
> For additional commands, e-mail: pear-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: mfischer@josefine.ben.tuwien.ac.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