Post navigation

homeTOCupnextprev

docBlock analysis

You appear to be a bot. Output may be restricted



/**
 * Increment the number
 * 
 * Example of a simple function that will increment the value of a number
 * 
 * @param integer $i - the number to be incremented
 * @return integer - the incremented number
 */
 

PHP: reflection function.   phpDocumentor

  • oikai_build_apiref() – Automatically create the API reference

phpDocumentor2 ReflectionDocBlock

Notes: Using the PHP Reflection function and logic copied and cobbled from phpDocumentor2 it's fairly easy to extract information from the docBlock comment and use this where needed in the API documentation. I only used a tiny subset of the phpDocumentor2 code. And I had to make it work on PHP 5.2. So I needed to de-namespace it.