views:

53

answers:

2

I'm looking to convert PHPDocumentor output to a format I can traverse through in PHP (Ideally, I want an array of all the functions with their comments).

Is there any way to do this?

+2  A: 

Zend_Reflection might be of some use: http://framework.zend.com/manual/en/zend.reflection.reference.html

prodigitalson
+2  A: 

You can use pure php reflection to get the phpdoc content. We used that to put there input validation data. I'll look up example code later.

Just use this:

$data = new ReflectionMethod($class, $method);
echo $data->getDocComment();
Patrick Cornelissen