Re: Deeply nested properties

From: Date: Mon, 01 Aug 2005 15:40:20 +0000
Subject: Re: Deeply nested properties
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-1497@lists.php.net to get a copy of this message
Andrei Zmievski wrote:
a) expose everything and let those who use var_dump() haphazardly suffer. b) do not expose GtkStyle properties. Option b) means that you will not see any properties on var_dump ($style), that get_object_vars($style) will return an empty array, and so on. You would still be able to access them normally, $style- >fg etc.
I vote for a. I can't think of a good reason off the top of my head but I am sure some one at some point will want to do this: foreach (get_object_vars($style) as $key => $value) { .... } Scott

« previous php.gtk.dev (#1497) next »