Re: [PHP4BETA] how to access objects parent?
| From: | waldschrott | Date: | Wed, 10 May 2000 14:56:45 +0000 |
| Subject: | Re: [PHP4BETA] how to access objects parent? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14753@lists.php.net to get a copy of this message | ||
...great idea that shouldn´t steal performance like global does. It´s a solution, but implementing a super like operator (if not already implemented) would be better.
In fact you CAN only do this, if you´re on the scope where $bigmama is available, the solution I need is, that the worm (parasite) can access $ bigmama from it´s lokal scope...
Stewart.Taylor@rdel.co.uk (Stewart Taylor) wrote:
Might you create an propery called super in parasite. class parasite { var $super; ... then use super as an alias of $bigmama $bigmama->worm = new parsite(); $bigmama->worm->super = &$bigmama; Regards, Stewart.