getCurrencyList() публичный статический Метод

Returns the list of all known currency symbols.
См. также: Piwik\Intl\Data\Provider\CurrencyDataProvider::getCurrencyList()
Устаревший: Use Piwik\Intl\Data\Provider\CurrencyDataProvider instead.
public static getCurrencyList ( ) : array
Результат array An array mapping currency codes to their respective currency symbols and a description, eg, `array('USD' => array('$', 'US dollar'))`.
Пример #1
0
 public static function getCurrencyList()
 {
     return Site::getCurrencyList();
 }
Пример #2
0
 /**
  * Returns the list of currency symbols
  * @see getCurrencyList()
  * @return array( currencyId => currencySymbol )
  */
 public function getCurrencySymbols()
 {
     $currencies = Site::getCurrencyList();
     return array_map(function ($a) {
         return $a[0];
     }, $currencies);
 }