Source for file Converter.class.php
Documentation is available at Converter.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* Converter Interface, convert data from one type to another
* A Converter is responsible for changing data from form to another. The
* Library provides a Blank Converter. This will simply return the data as it's passed.
* A single Converter will be responsible for performing multiple conversion tasks. The
* Interface defines a way to convert 'data' to a particular format (as 'to' argument).
* The details are defined by the class implementation.
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Converter Interface, convert data from one type to another
* Converts one variable type to another
public function convert ($data, $to=
null);