Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.0

Request #12475 Conversion to Image_GraphViz instance
Submitted: 2007-11-18 20:10 UTC
From: jausions Assigned: jon
Status: Closed Package: FSM (version CVS)
PHP Version: 5.2.3 OS: Irrelevant
Roadmaps: 1.3.0    
Subscription  


 [2007-11-18 20:10 UTC] jausions (Philippe Jausions)
Description: ------------ I needed to plot the states of the machine to a visual representation. I set to use Image_GraphViz and it works pretty good. http://pear.11abacus.com/dev/FSM/ If ran under PHP5, the class uses the Reflection API to get more information out of the doc block to know what status can be returned from an action. Test script: --------------- require_once 'FSM.php'; require_once 'FSM/GraphViz.php'; $payload = array(); $fsm = new FSM('START', $payload); // ... setup the FSM $converter = new FSM_GraphViz($fsm); $graph = $converter->export(); $graph->image('png');

Comments

 [2007-12-09 22:22 UTC] jon (Jon Parise)
Could you please attach your changes to this bug report? The URL you included in the description no longer appears to be active.
 [2008-01-19 19:17 UTC] jon (Jon Parise)
It looks like the posted URL is now active. Thanks!
 [2008-02-10 00:24 UTC] jon (Jon Parise)
I have the code integrated and am ready to release it with the FSM package. However, I see that your code includes a New BSD-style license on it while the existing package uses the MIT license. Will you allow me to replace the license on your code with the MIT license so that the package can be released under a single license? If you feel very strongly about this, I can relicense the package under a BSD-style license, but that might cause confusion for some folks downstream.
 [2008-02-10 00:50 UTC] jausions (Philippe Jausions)
Yes, you can change the license to MIT. I have to admit that I'm not well versed on all the difference between the acceptable licenses (I should read up on that when I have time, as in never ;-)
 [2008-02-10 22:00 UTC] jon (Jon Parise)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.