Re: More work on reflection API

From: Date: Thu, 03 Jul 2003 13:25:02 +0000
Subject: Re: More work on reflection API
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-3194@lists.php.net to get a copy of this message
On Tue, 01 Jul 2003, Timm Friebe wrote: > - Added Reflection_Class::getModifiers which returns a long > consisting of the bitmask of modifiers which are registered > as constants with the following names: > > STATIC > ABSTRACT > FINAL > INTERFACE > ABSTRACT_CLASS > FINAL_CLASS > PUBLIC > PROTECTED > PRIVATE > PPP_MASK > CHANGED > IMPLICIT_PUBLIC Should these be grouped somehow? PPP has a separate domain than ABSTRACT_CLASS and FINAL_CLASS, for example. > TBDiscussed: Would something like > $modifiers= array('public', 'static') > be cooler? Currently, one would be checking with > $modifiers & STATIC No, I'd prefer a bitmask rather than an array like that. -Andrei * There is no knowledge that is not power. -- Ralph Waldo Emerson *

« previous php.internals (#3194) next »