Merge pull request #4546 from rohankatkar/CRM-15514
[civicrm-core.git] / CRM / Utils / Money.php
index 456bba09371c4f695eb20f254029a0033e08ddf5..69e60df32226981d58fed7dbb8f0f657fe1c73a0 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -49,9 +49,10 @@ class CRM_Utils_Money {
    * %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
@@ -69,11 +70,11 @@ class CRM_Utils_Money {
     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')) {