PHP5 OOP how do I get the list of all classes dynamically?
| From: | Daevid Vincent | Date: | Thu, 06 Oct 2005 02:04:28 +0000 |
| Subject: | PHP5 OOP how do I get the list of all classes dynamically? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223672@lists.php.net to get a copy of this message | ||
I have a class
class XMLRule
{
...
}
And many of these:
class is_username extends XMLRule
{
}
class is_device extends XMLRule
{
}
Is there a way in PHP5 to get a list of all the 'extends' classes I have
'defined' in my .php file?
I'm sure this is a long shot, but thought maybe through the Reflection class
or something? I really don't want to manually maintain an array if I don't
have to.