From: <Ma...@Cl...> - 2009-07-14 02:35:10
|
To be clearer, here's a real example: Most of the call arrows for the attached are correct, except for the following two, where the class is unset, meaning my code draws the arrows to :ClassUnknown: $ca->inspectFiles($files); $this->codeSummary = $ca->getCodeSummary(); Thanks, Martin. <?php class PHPCallGraph { public function parse(array $filesOrDirs, $recursive = false) { $files = $this->collectFileNames($filesOrDirs, $recursive); $ca = new iscCodeAnalyzer(null); $ca->setDebug($this->debug); $ca->setAutoloadFile($this->autoloadFile); $ca->inspectFiles($files); $this->codeSummary = $ca->getCodeSummary(); $this->analyseCodeSummary(); } } ?> -- Ma...@Cl... http://twitter.com/mrjcleaver +1 416-786-6752 (GMT-5) On Mon, Jul 13, 2009 at 10:26 PM, Ma...@Cl...<Ma...@cl...> wrote: > Sorry about that incomplete email - I was balancing my 8 month old on my lap! > > This is what it should have said: > >> It works quite well but doesn't seem to always be passed a class, leading the call arrows to go to UnknownClass rather than to the correct object. > > More examples can be seen in > http://phpcallgraph.svn.sourceforge.net/viewvc/phpcallgraph/trunk/examples/output/ > >>Is the class=null on addCall() a known issue? > > Also, I want to be able to get the source code of the current method > available to the driver. Can we make the codeAnalyzer available to the > driver, or pass the sourcecode? > > Thanks, > Martin. > > > -- > Ma...@Cl... > http://twitter.com/mrjcleaver > +1 416-786-6752 (GMT-5) > > > > On Mon, Jul 13, 2009 at 3:10 PM, Ma...@Cl... <Ma...@cl...> wrote: >> >> Hi - so attached is an example output from my driver that outputs umlgraph sequence diagrams. >> >> It works quite well but doesn't seem to always be passed a class, leading the call arrows to go to UnknownClass rather than to the correct object. > >> Is this a known issue? >> Thanks, M. >> >> >> -- >> Ma...@Cl... >> http://twitter.com/mrjcleaver >> +1 416-786-6752 (GMT-5) >> > |