* @author Stefan Neufeind * @copyright 2003-2009 The PHP Group * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version SVN: $Id: Currency.php 291170 2009-11-23 03:50:22Z neufeind $ * @link http://pear.php.net/package/Image_Graph */ /** * Include file Image/Graph/DataPreprocessor/Formatted.php */ require_once 'Image/Graph/DataPreprocessor/Formatted.php'; /** * Format data as a currency. * * Uses the {@link Image_Graph_DataPreprocessor_Formatted} to represent the * values as a currency, i.e. 10 => � 10.00 * * @category Images * @package Image_Graph * @subpackage DataPreprocessor * @author Jesper Veggerby * @author Stefan Neufeind * @copyright 2003-2009 The PHP Group * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version Release: 0.8.0 * @link http://pear.php.net/package/Image_Graph */ class Image_Graph_DataPreprocessor_Currency extends Image_Graph_DataPreprocessor_Formatted { /** * Image_Graph_CurrencyData [Constructor]. * * @param string $currencySymbol The symbol representing the currency */ function Image_Graph_DataPreprocessor_Currency($currencySymbol) { parent::__construct($currencySymbol.' %0.2f'); } } ?>