logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Enums/flags as objects?: msg#00060

Subject: Re: Enums/flags as objects?
Hi

*who* except devs would need this feature?
:)  flip perspective - PHP-GTK users _are_ devs!
That should change...
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:

Attachment: signature.asc
Description: OpenPGP digital signature

<Prev in Thread] Current Thread [Next in Thread>