| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
static $_currencySymbols = NULL;
/**
- * Format a monetary string
+ * Format a monetary string.
*
* Format a monetary string basing on the amount provided,
* ISO currency code provided and a format string consisting of:
* @return string
* formatted monetary string
*
- * @static
*/
public static function format($amount, $currency = NULL, $format = NULL, $onlyNumber = FALSE, $valueFormat = NULL) {
if (!self::$_currencySymbols) {
self::$_currencySymbols = CRM_Core_PseudoConstant::get('CRM_Contribute_DAO_Contribution', 'currency', array(
'keyColumn' => 'name',
- 'labelColumn' => 'symbol'
+ 'labelColumn' => 'symbol',
));
}
);
return strtr($format, $replacements);
}
+
}