diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/Reflection/Extension.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/Reflection/Extension.php Thu Jan 20 19:30:54 2011 +0100 @@ -0,0 +1,85 @@ +getName()); + if (!$instance instanceof Zend_Reflection_Function) { + require_once 'Zend/Reflection/Exception.php'; + throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Function'); + } + $zendReflections[] = $instance; + unset($phpReflection); + } + unset($phpReflections); + return $zendReflections; + } + + /** + * Get extension class reflection objects + * + * @param string $reflectionClass Name of reflection class to use + * @return array Array of Zend_Reflection_Class objects + */ + public function getClasses($reflectionClass = 'Zend_Reflection_Class') + { + $phpReflections = parent::getClasses(); + $zendReflections = array(); + while ($phpReflections && ($phpReflection = array_shift($phpReflections))) { + $instance = new $reflectionClass($phpReflection->getName()); + if (!$instance instanceof Zend_Reflection_Class) { + require_once 'Zend/Reflection/Exception.php'; + throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Class'); + } + $zendReflections[] = $instance; + unset($phpReflection); + } + unset($phpReflections); + return $zendReflections; + } +}