Sunday, 29 September 2013

analyse PHP code function calling

analyse PHP code function calling

I'm writing PHP codes but unlike Visual Studio, you cannot ask PHP to tell
you in what locations is a function called.
suppose I have code in CodeIgniter:
controller.php
class Ccc: CI_Controller
{
...
function myf1()
{
$this->load->model('mmm');
$this->mmm->funcB();
}
}
in model.php
class Mmm : CI_Model
{
...
function funcB()
{
.....
}
}
I need a report which tells me Mmm.funcB is called from Ccc.myf1 and from
which other locations.

No comments:

Post a Comment