getCurrencyList() public static method

Returns the list of all known currency symbols.
See also: Piwik\Intl\Data\Provider\CurrencyDataProvider::getCurrencyList()
Deprecation: Use Piwik\Intl\Data\Provider\CurrencyDataProvider instead.
public static getCurrencyList ( ) : array
return array An array mapping currency codes to their respective currency symbols and a description, eg, `array('USD' => array('$', 'US dollar'))`.
コード例 #1
0
ファイル: MetricsFormatter.php プロジェクト: cemo/piwik
 public static function getCurrencyList()
 {
     return Site::getCurrencyList();
 }
コード例 #2
0
ファイル: API.php プロジェクト: aassou/AnnahdaWebsiteCanvas
 /**
  * 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);
 }