You are here

static function CurrencyExchangerBartFeenstraCurrency::loadMultiple in Currency 7.2

Implements CurrencyExchangerInterface::loadMultiple().

Overrides CurrencyExchangerInterface::loadMultiple

1 call to CurrencyExchangerBartFeenstraCurrency::loadMultiple()
CurrencyExchangerBartFeenstraCurrencyWebTestCase::testCurrencyExchangerBartFeenstraCurrency in currency/tests/CurrencyConverterBartFeenstraCurrencyWebTestCase.test
Test currency exchange.

File

currency/includes/CurrencyExchangerBartFeenstraCurrency.inc, line 40
Contains class CurrencyExchangerBartFeenstraCurrency.

Class

CurrencyExchangerBartFeenstraCurrency
Provides fixed exchange rates as provided by bartfeenstra/currency.

Code

static function loadMultiple(array $currency_codes) {
  $rates = array();
  foreach ($currency_codes as $currency_code_from => $currency_codes_to) {
    foreach ($currency_codes_to as $currency_code_to) {
      $rates[$currency_code_from][$currency_code_to] = self::load($currency_code_from, $currency_code_to);
    }
  }
  return $rates;
}