Req #67200 [Opn->Wfx]: Creation of $parent psuedo-variable

From: Date: Sun, 04 May 2014 05:52:14 +0000
Subject: Req #67200 [Opn->Wfx]: Creation of $parent psuedo-variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185614@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67200&edit=1 ID: 67200 Updated by: requinix@php.net Reported by: todd at toddcrane dot com Summary: Creation of $parent psuedo-variable -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Unknown/Other Function Operating System: Ubuntu 12.04 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: The concept of "an instance's parent instance" is completely dependent on your code and the application. It would make no sense for PHP itself to implement something like that. Make player's constructor take a parameter for the "parent" team. Problem solved. Previous Comments: ------------------------------------------------------------------------ [2014-05-04 05:47:55] todd at toddcrane dot com Description: ------------ I am requesting a pseudo variable be created to reference an instance's parent instance. For example, within an instance of class 'team' there are instances of class 'players' created. This will allow public methods and properties belonging to the 'team' instance to be called from one of the 'players' instance. Test script: --------------- http://pastebin.com/eLBnx1dY ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67200&edit=1

« previous php.bugs (#185614) next »