<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
* %C - the currency ISO code (e.g., 'USD') if provided
* %c - the currency symbol (e.g., '$') if available
*
- * @param float $amount the monetary amount to display (1234.56)
- * @param string $currency the three-letter ISO currency code ('USD')
- * @param string $format the desired currency format
+ * @param float $amount the monetary amount to display (1234.56)
+ * @param string $currency the three-letter ISO currency code ('USD')
+ * @param string $format the desired currency format
+ * @param bool $onlyNumber
* @param string $valueFormat the desired monetary value display format (e.g. '%!i')
*
* @return string formatted monetary string
if (!$format) {
$format = $config->moneyformat;
}
-
+
if (!$valueFormat) {
$valueFormat = $config->moneyvalueformat;
}
-
+
if ($onlyNumber) {
// money_format() exists only in certain PHP install (CRM-650)
if (is_numeric($amount) and function_exists('money_format')) {