Re: Q on Class and EXTEND

From: Date: Wed, 03 Sep 2003 17:35:46 +0000
Subject: Re: Q on Class and EXTEND
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-161574@lists.php.net to get a copy of this message
> What I am trying to do is EXTEND the PEAR::Auth Class with new properties > and methods. Ok. > But I still want to use the original instantiation call... > $myAuth =& Auth(); Which is instantiating the parent class. From what I understand of your question, you are wanting to instantiate the parent which, in turn, somehow calls upon (or instantiats) the child simply because the child EXTENDS the parent? Is that correct? If so, I don't believe this type of functionality/feature exists in any language, much less PHP. Am I wrong? Chris

« previous php.general (#161574) next »