cvs: pear /FSM/FSM GraphViz.php
| From: | Jon Parise | Date: | Sun, 10 Feb 2008 22:07:09 +0000 |
| Subject: | cvs: pear /FSM/FSM GraphViz.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-50968@lists.php.net to get a copy of this message | ||
jon Sun Feb 10 22:07:09 2008 UTC
Modified files:
/pear/FSM/FSM GraphViz.php
Log:
Cleaning up some documentation comments and swapping the order of
export()'s parameters to match the Image_GraphViz constructor.
http://cvs.php.net/viewvc.cgi/pear/FSM/FSM/GraphViz.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/FSM/FSM/GraphViz.php
diff -u pear/FSM/FSM/GraphViz.php:1.1 pear/FSM/FSM/GraphViz.php:1.2
--- pear/FSM/FSM/GraphViz.php:1.1 Sun Feb 10 21:59:03 2008
+++ pear/FSM/FSM/GraphViz.php Sun Feb 10 22:07:09 2008
@@ -25,7 +25,7 @@
* @author Philippe Jausions <jausions@php.net>
* @copyright 2007 Philippe Jausions / 11abacus
* @license http://www.11abacus.com/license/NewBSD.php
New BSD License
- * @version CVS: $Id: GraphViz.php,v 1.1 2008/02/10 21:59:03 jon Exp $
+ * @version CVS: $Id: GraphViz.php,v 1.2 2008/02/10 22:07:09 jon Exp $
*/
/**
@@ -35,16 +35,18 @@
require_once 'Image/GraphViz.php';
/**
- * FSM <-> Image_GraphViz converter
+ * FSM to Image_GraphViz converter
*
* This class extends the FSM class to have access to private properties.
* It is not intended to be used as a FSM instance.
*
- * PHP 5+ is recommended to be able to handle action that return a new state
+ * PHP 5 or later is recommended to be able to handle action that return a new
+ * state.
*
* @package FSM
* @author Philippe Jausions <jausions@php.net>
* @copyright (c) 2007 by Philippe Jausions / 11abacus
+ * @since 1.3.0
*/
class FSM_GraphViz extends FSM
{
@@ -97,14 +99,14 @@
/**
* Converts an FSM to an instance of Image_GraphViz
*
+ * @param string $name Name for the graph
* @param boolean $strict Whether to collapse multiple edges between
* same nodes.
- * @param string $name Name for the graph
*
* @return Image_GraphViz instance or PEAR_Error on failure
* @access public
*/
- function &export($strict = true, $name = 'FSM')
+ function &export($name = 'FSM', $strict = true)
{
if (!is_a($this->_fsm, 'FSM')) {
$error = PEAR::raiseError('Not a FSM instance');