note 93354 rejected from reflectionclass.getmethods by vrana
| From: | vrana@php.net | Date: | Fri, 13 Nov 2009 20:47:59 +0000 |
| Subject: | note 93354 rejected from reflectionclass.getmethods by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162882@lists.php.net to get a copy of this message | ||
Note Submitter: phil dot bowles at btopenworld dot com
----
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...