note 93354 added to reflectionclass.getmethods
| From: | phil dot bowles at btopenworld dot com | Date: | Sat, 05 Sep 2009 03:02:20 +0000 |
| Subject: | note 93354 added to reflectionclass.getmethods | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160230@lists.php.net to get a copy of this message | ||
The undocumented filter parameter is pretty straightforward:
its one of:
const integer ReflectionMethod::IS_STATIC = 1 ;
const integer ReflectionMethod::IS_PUBLIC = 256 ;
const integer ReflectionMethod::IS_PROTECTED = 512 ;
const integer ReflectionMethod::IS_PRIVATE = 1024 ;
const integer ReflectionMethod::IS_ABSTRACT = 2 ;
const integer ReflectionMethod::IS_FINAL = 4 ;
and restrict the array returned to those methods matching the filter type...
----
Server IP: 92.48.74.199
Probable Submitter: 86.132.179.41
----
Manual Page -- http://www.php.net/manual/en/reflectionclass.getmethods.php
Edit -- https://master.php.net/note/edit/93354
Del: integrated -- https://master.php.net/note/delete/93354/integrated
Del: useless -- https://master.php.net/note/delete/93354/useless
Del: bad code -- https://master.php.net/note/delete/93354/bad+code
Del: spam -- https://master.php.net/note/delete/93354/spam
Del: non-english -- https://master.php.net/note/delete/93354/non-english
Del: in docs -- https://master.php.net/note/delete/93354/in+docs
Del: other reasons-- https://master.php.net/note/delete/93354
Reject -- https://master.php.net/note/reject/93354
Search -- https://master.php.net/manage/user-notes.php