* @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version CVS: $Id$ * @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 * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version Release: @package_version@ * @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::Image_Graph_DataPreprocessor_Formatted("$currencySymbol %0.2f"); } } ?>