Re: Class related mayhem...

From: Date: Mon, 06 Nov 2000 12:10:04 +0000
Subject: Re: Class related mayhem...
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37256@lists.php.net to get a copy of this message
JP>> Class userClass JP>> { JP>> var $userData; JP>> var $output; JP>> JP>> Function userClass() JP>> { JP>> $this->output = new outputUserClass; JP>> } JP>> } JP>> JP>> JP>> In this example, is it possible for the outputUserClass to access the JP>> userData variable with userClass? Since PHP places no restriction on class member access, any code can access any member of any class. But, if you are asking _how_ to access this, then probably you should make outputUserClass object somehow to know it's containing object. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106

« previous php.dev (#37256) next »