예제 #1
0
/**
 * Stands for MemberMouse Override Format [of Currency] - formats a currency value into a locale appropriate string, using any
 * supplied settings to override the defaults
 *
 * @param float $amount The currency value to format
 * @param string $currencyCode (optional) The iso code of the currency
 * @param array $currencySettings (optional) The settings to use when overriding the defaults
 *        	
 * @return string The formatted value
 *        
 */
function _mmof($amount, $currencyCode = "", $currencySettings = "")
{
    $currencyCode = empty($currencyCode) ? MM_CurrencyUtil::getActiveCurrency() : $currencyCode;
    return MM_CurrencyUtil::format("%n", $amount, $currencyCode, $currencySettings);
}