2020-08-06 23:29:23 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Contains a class for controlling the list of available currencies.
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
2020-08-07 00:12:49 +02:00
|
|
|
declare(strict_types = 1);
|
2020-08-06 23:29:23 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class containing available currencies.
|
|
|
|
*/
|
2020-08-29 17:21:18 +02:00
|
|
|
final class MDCurrenciesSet extends MDValueSet {
|
2020-08-06 23:29:23 +02:00
|
|
|
|
|
|
|
const CURRENCIES = [
|
|
|
|
'',
|
2022-05-15 03:15:00 +02:00
|
|
|
'ddr-Mark',
|
|
|
|
'ddr-MDN',
|
|
|
|
'de-DM',
|
|
|
|
'de-RM',
|
|
|
|
'es-Real',
|
|
|
|
'eu-EUR',
|
2022-10-24 16:36:09 +02:00
|
|
|
'fr-FF',
|
2022-05-15 03:15:00 +02:00
|
|
|
'id-IDR',
|
|
|
|
'hu-Ft',
|
2020-08-06 23:29:23 +02:00
|
|
|
'hu-Lari',
|
|
|
|
'hu-Pengő',
|
2022-05-15 03:15:00 +02:00
|
|
|
'hu-Korona',
|
|
|
|
'pl-Złoty',
|
|
|
|
'us-USD',
|
2020-08-06 23:29:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets a list of the entries in a translated version.
|
|
|
|
*
|
|
|
|
* @param MDTlLoader $tlLoader Translation loader.
|
|
|
|
*
|
|
|
|
* @return array<string>
|
|
|
|
*/
|
|
|
|
public static function getSortedList(MDTlLoader $tlLoader):array {
|
|
|
|
return parent::getTlSortedList($tlLoader, self::CURRENCIES, "currencies_set", "currencies_set");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|