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?
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?
Zend_Reflection might be of some use: http://framework.zend.com/manual/en/zend.reflection.reference.html
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();