Edit report at http://bugs.php.net/bug.php?id=53779&edit=1

 ID:                 53779
 Updated by:         fel...@php.net
 Reported by:        RQuadling at GMail dot com
 Summary:            New class ReflectionConstant along the lines of
                     ReflectionProperty
 Status:             Open
 Type:               Feature/Change Request
 Package:            Reflection related
 Operating System:   Irrelevant
 PHP Version:        5.3SVN-2011-01-18 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

More related ideas in bug #45569


Previous Comments:
------------------------------------------------------------------------
[2011-01-18 16:55:51] RQuadling at GMail dot com

Description:
------------
Using ReflectionClass->getConstants() returns all constants defined in
the class 

tree as a simple array, irrespective of the defining class.



In comparison to that ReflectionClass->getProperties() returns a
collection of 

ReflectionProperty, allowing you to filter the find the properties for a
single 

class.



So, would it be possible to have a similar mechanism for constants,
replacing the 

simplistic array with a collection of RefelctionConstant.







------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53779&edit=1

Reply via email to