Re: How to Get the Sub Classes of a Parent Class

From: Date: Wed, 28 Oct 2009 09:14:55 +0000
Subject: Re: How to Get the Sub Classes of a Parent Class
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-299420@lists.php.net to get a copy of this message
2009/10/28 David Otton <phpmail@jawbone.freeserve.co.uk>: > 2009/10/28 Raymond Irving <xwisdom@yahoo.com>: > >>  I'm try to do something like what Martin Scotta did but I'm looking for a >> solution that did not require me to loop through get_declared classes() to >> find a sub class. > > Place all your child classes in the same namespace, and use > ReflectionNamespace::getClasses(). Hah. Turns out that's on the @todo list... wait for PHP 5.4 maybe.

« previous php.general (#299420) next »