Re: SESS: objects containing objects *final statement*(?) please read!
| From: | Boris Erdmann | Date: | Fri, 25 Feb 2000 18:31:33 +0000 |
| Subject: | Re: SESS: objects containing objects *final statement*(?) please read! | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10982@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
>
> On Fri, 25 Feb 2000, Boris Erdmann wrote:
> > This would be the ability to traverse the slots of a class. IHMO
> > Yes it would be nice to have *three* functions:
> >
> > - class_member_vars("classname")
> > which implies class_member_vars(get_class($obj)) (the original
> > question from Andrei)
>
> I think it should be get_class_vars($obj), not
> get_class_vars("classname"). We want to get all the object member vars
> _at the time of the call_, not the default member vars when the class
> was declared. Although we can do it both ways:
>
> get_class_vars(string classname) - gets default class vars
> get_class_vars(object $obj) - gets the current class vars
>
Thatd be great. Or if we dont want to overload the function we could
put it:
get_class_vars() -> deliver the initial class vars
get_obj_vars() -> deliver the current obj vars
I dont think that these functions should deliver the values too, because
these are accessible by the slot names, arent they.
Boris