Req #53779 [Opn]: New class ReflectionConstant along the lines of ReflectionProperty

From: Date: Sat, 29 Jan 2011 01:47:09 +0000
Subject: Req #53779 [Opn]: New class ReflectionConstant along the lines of ReflectionProperty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158301@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53779&edit=1

 ID:                 53779
 Updated by:         felipe@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


Thread (3 messages)

« previous php.bugs (#158301) next »