On 5/2/2011 7:35 PM, Ryan Lane wrote:
I totally<3 that you wrote it in python.
On Mon, May 2, 2011 at 4:21 PM, Russell N. Nelson - rnnelson
> Maybe there's a better tool to tell you what function is defined in what class in
PHP, but I couldn't find one in the time it would take me to write it, so I wrote it.
It's not even a screenful. Give it the class definitions, in class hierarchy order, on
the command line. It will pull out the class name and function names, and tell you which
function is actually being implemented by which class. It doesn't pay any attention to
parent::self() calls, so you should watch out for them.
Note that there is a PHP tokenizer built into PHP which makes it
straightforward to develop tools like this in PHP:
A practical example can be found here
Now, it would be nice to have a parser available that can see the