Re: Enums/flags as objects?
| From: | Christian Weiske | Date: | Wed, 11 Aug 2004 06:59:24 +0000 |
| Subject: | Re: Enums/flags as objects? | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-713@lists.php.net to get a copy of this message | ||
Hi
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
I just think that this helper wouldn't be needed very often. How to do the thing with the function: One could use the get_defined_constants() and filter all the names beginning with the group, e.g. "GTK_CURSOR" or so. Then the array could be flipped and the right value selected - and there is the name. I know that a "real" oo solution would be better, but I don't think it's worth it. Regards/MfG, Christian Weiske -- XMMS is playing now:*who* except devs would need this feature?:) flip perspective - PHP-GTK users _are_ devs! That should change...
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc