cvs: pear /FSM FSM.php

From: Date: Thu, 19 Jan 2006 06:36:19 +0000
Subject: cvs: pear /FSM FSM.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-37650@lists.php.net to get a copy of this message
jon Thu Jan 19 06:36:19 2006 UTC Modified files: /pear/FSM FSM.php Log: Relicensing this code under the MIT License, and adjusting the constructor's documentation block in order to encourage phpDocumentor to produce better "brief" output. http://cvs.php.net/viewcvs.cgi/pear/FSM/FSM.php?r1=1.13&r2=1.14&diff_format=u Index: pear/FSM/FSM.php diff -u pear/FSM/FSM.php:1.13 pear/FSM/FSM.php:1.14 --- pear/FSM/FSM.php:1.13 Sat Jan 8 22:43:25 2005 +++ pear/FSM/FSM.php Thu Jan 19 06:36:19 2006 @@ -1,22 +1,27 @@ <?php /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ -/* +----------------------------------------------------------------------+ - * | PHP Version 4 | - * +----------------------------------------------------------------------+ - * | Copyright (c) 1997-2004 The PHP Group | - * +----------------------------------------------------------------------+ - * | This source file is subject to version 2.02 of the PHP license, | - * | that is bundled with this package in the file LICENSE, and is | - * | available at through the world-wide-web at | - * | http://www.php.net/license/2_02.txt. | - * | If you did not receive a copy of the PHP license and are unable to | - * | obtain it through the world-wide-web, please send a note to | - * | license@php.net so we can mail you a copy immediately. | - * +----------------------------------------------------------------------+ - * | Authors: Jon Parise <jon@php.net> | - * +----------------------------------------------------------------------+ +/* + * Copyright (c) 2002-2006 Jon Parise <jon@php.net> * - * $Id: FSM.php,v 1.13 2005/01/08 22:43:25 jon Exp $ + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + * + * $Id: FSM.php,v 1.14 2006/01/19 06:36:19 jon Exp $ */ /** @@ -32,8 +37,9 @@ * http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146262 * * @author Jon Parise <jon@php.net> - * @version $Revision: 1.13 $ + * @version $Revision: 1.14 $ * @package FSM + * @license http://www.opensource.org/licenses/mit-license.php MIT License * * @example rpn.php A Reverse Polish Notation (RPN) calculator. */ @@ -94,11 +100,12 @@ /** - * This method constructs a new Finite State Machine (FSM) object. In - * addition to defining the machine's initial state, a "payload" may also - * be specified. The payload represents a variable that will be passed - * along to each of the action functions. If the FSM is being used for - * parsing, the payload is often a array that is used as a stack. + * This method constructs a new Finite State Machine (FSM) object. + * + * In addition to defining the machine's initial state, a "payload" may + * also be specified. The payload represents a variable that will be + * passed along to each of the action functions. If the FSM is being used + * for parsing, the payload is often a array that is used as a stack. * * @param string $initialState The initial state of the FSM. * @param mixed $payload A payload that will be passed to each

« previous php.pear.cvs (#37650) next »