diff -r 000000000000 -r 4eba9c11703f web/Zend/Reflection/Extension.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Reflection/Extension.php Mon Dec 13 18:29:26 2010 +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; + } +}