Re: SESS: objects containing objects *final statement*(?) please read!
| From: | Andrei Zmievski | Date: | Fri, 25 Feb 2000 14:07:09 +0000 |
| Subject: | Re: SESS: objects containing objects *final statement*(?) please read! | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10945@lists.php.net to get a copy of this message | ||
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
And what should it return - just the var names, or also values?
> - class_methods("classname")
Might be useful.
> - get_superclass("classname")
That's called get_parent_class().
-Andrei
* Black holes are where God divided by zero. *