Re: [PHP4BETA] Session: objects containing objects

From: Date: Thu, 24 Feb 2000 20:37:48 +0000
Subject: Re: [PHP4BETA] Session: objects containing objects
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.version4 
Request: Send a blank email to php-version4+get-10899@lists.php.net to get a copy of this message
On Thu, 24 Feb 2000, Ulf Wendel wrote: > Think of what this function is used for. Manly for debugging as > replacement of the foreach($obj) construct. Would you like to know about > the properties defined when the object was constructed or all > properties? The answer is obvious: all. Not always. You may want to know which properties existed at the time of instantiation and which were added later. How about, get_class_vars(bool default), if default is true it returns only default properties, otherwise all, and default is false if not specified? > If php knew static, private, public etc. it's worth to think of treating > the slots different, accessing them by different functions or one that > informs you about the nature of a certain slot. > > Before you start coding have a look to what I wrote in response to > Boris. I'd like us to choose beetween eighter implementing functions for > introspection or be able to handle an object like an array. Let's stop > mixing both. In short, having $obj["_CLASSNAME"] notation just will not work. We're going to have to use functions to get that sort of stuff. -Andrei * Why is it always Segmentation's fault? *

« previous php.version4 (#10899) next »