Re: Add get_object_constants and get_class_constants
| From: | Crypto Compress | Date: | Wed, 27 Feb 2013 17:09:01 +0000 |
| Subject: | Re: Add get_object_constants and get_class_constants | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66280@lists.php.net to get a copy of this message | ||
Am 27.02.2013 16:58, schrieb Mike Willbanks:
I am simply suggesting an alternative to using Reflection whereas: get_class_constants([object|string]); get_object_constants([object]); Do we need both; probably not; the first would likely do.+1 for the first one only Am 27.02.2013 16:12, Analyst (Frank Schenk) trolled:
bitmask class to shuffle around with class constantsshuffle bits around with clearly named constants: http://php.net/manual/en/language.operators.bitwise.php https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Acl/Permission/MaskBuilder.php cryptocompress