You are here

static function CurrencyExchangerFixedRates::loadMultiple in Currency 7.2

Implements CurrencyExchangerInterface::loadMultiple().

Overrides CurrencyExchangerInterface::loadMultiple

1 call to CurrencyExchangerFixedRates::loadMultiple()
CurrencyExchangerFixedRatesWebTestCase::testCurrencyExchangerFixedRates in currency/tests/CurrencyConverterFixedRatesWebTestCase.test
Test currency exchange.

File

currency/includes/CurrencyExchangerFixedRates.inc, line 33
Contains class CurrencyExchangerFixedRates.

Class

CurrencyExchangerFixedRates
Provides manually entered exchange rates.

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;
}