Deeply nested properties
| From: | Andrei Zmievski | Date: | Sun, 31 Jul 2005 16:54:16 +0000 |
| Subject: | Deeply nested properties | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-1495@lists.php.net to get a copy of this message | ||
If you run var_dump() on a realized widget right now, you will get a few thousand lines of the output, owing to the deeply nested structure of widgets and especially the multitude of properties that the GtkStyle object has. This is even without exposing GdkGC properties yet. So, I can provide two approaches:
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.-Andrei