ID:               30398
 Updated by:       [EMAIL PROTECTED]
 Reported By:      epowell at visi dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Feature/Change Request
-Operating System: Mac OS X 10.3.5
+Operating System: *
-PHP Version:      5.0.2
+PHP Version:      5.*
 New Comment:

Use Reflection API instead.


Previous Comments:
------------------------------------------------------------------------

[2004-10-11 17:31:29] epowell at visi dot com

Description:
------------
PHP5 introduces private, 
protected, and public object methods, but there is no 
functionality to list just the private or just the 
public methods in an object.  The get_class_methods() 
function will return all method names, regardless of 
protection level.

I would like to suggest either overloading the 
get_class_methods() function to take a protection level 
argument (for example, 
$array=get_class_methods($object,'private)) or creation 
of a set of functions to do the same 
(get_class_public_methods(), 
get_class_private_methods()).

Yes, I could use the Reflection API, but that's serious 
overkill...



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30398&edit=1

Reply via email to