note 80770 added to language.oop5.reflection
| From: | krowork at osu1 dot php dot net | Date: | Thu, 31 Jan 2008 10:47:16 +0000 |
| Subject: | note 80770 added to language.oop5.reflection | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135642@lists.php.net to get a copy of this message | ||
Like Will Mason said for the ReflectionMethod's constants, there is filter constants for
ReflectionProperty too:
ReflectionProperty::IS_STATIC
ReflectionProperty::IS_PUBLIC
ReflectionProperty::IS_PROTECTED
ReflectionProperty::IS_PRIVATE
that can be used in the ReflectionClass' method getProperties:
$class=new ReflectionClass("Foo");
$class->getProperties(
ReflectionProperty::IS_STATIC |
ReflectionProperty::IS_PUBLIC );
this obtains the publics (static or not) and the statics (public or not): this exlude the non static
private properties.
----
Server IP: 80.64.47.13
Probable Submitter: 80.33.123.53
----
Manual Page -- http://www.php.net/manual/en/language.oop5.reflection.php
Edit -- https://master.php.net/note/edit/80770
Del: integrated -- https://master.php.net/note/delete/80770/integrated
Del: useless -- https://master.php.net/note/delete/80770/useless
Del: bad code -- https://master.php.net/note/delete/80770/bad+code
Del: spam -- https://master.php.net/note/delete/80770/spam
Del: non-english -- https://master.php.net/note/delete/80770/non-english
Del: in docs -- https://master.php.net/note/delete/80770/in+docs
Del: other reasons-- https://master.php.net/note/delete/80770
Reject -- https://master.php.net/note/reject/80770
Search -- https://master.php.net/manage/user-notes.php