Example #1
0
/**
 * 2016-08-08
 * @return float
 */
function df_currency_rate_to_current()
{
    return df_currency_base()->getRate(df_currency_current());
}
Example #2
0
 /**
  * 2016-09-05
  * @used-by \Df\Payment\FormElement\Currency::v()
  * @param null|string|int|S|Store $store [optional]
  * @param CurrencyM|string|null $orderCurrency [optional]
  * @return array(string => CurrencyM|string|null)
  */
 private static function map($store = null, $orderCurrency = null)
 {
     return dfcf(function ($store = null, $orderCurrency = null) {
         return [self::$BASE => df_currency_base($store), self::$ORDER => $orderCurrency ?: df_currency_current($store)];
     }, func_get_args());
 }