FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Discovering all sub-classes via introspection?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Discovering all sub-classes via introspection? [message #171512 is a reply to message #171509] Fri, 07 January 2011 04:08 Go to previous messageGo to previous message
Sherm Pendley is currently offline  Sherm Pendley
Messages: 33
Registered: September 2010
Karma:
Member
Roy Smith <roy(at)panix(dot)com> writes:

> Given a class, is there a way to find all the classes which extend it?

Use get_declared_classes() to get a list of classes, then loop over
the list and use is_subclass_of() on each item to check if it extends
your target class.

sherm--

--
Sherm Pendley
<http://camelbones.sourceforge.net>
Cocoa Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Kobweb Java Supplementary 2011 Online Module
Next Topic: phpmailer
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 01:05:39 GMT 2024

Total time taken to generate the page: 0.05394 seconds