40 lines
829 B
PHP
40 lines
829 B
PHP
|
<?PHP
|
||
|
/**
|
||
|
* Contains a class for controlling the list of available currencies.
|
||
|
*
|
||
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Class containing available currencies.
|
||
|
*/
|
||
|
class MDCurrenciesSet extends MDValueSet {
|
||
|
|
||
|
const CURRENCIES = [
|
||
|
'',
|
||
|
"de-DM",
|
||
|
"de-RM",
|
||
|
"es-Real",
|
||
|
"eu-EUR",
|
||
|
"id-IDR",
|
||
|
"hu-Ft",
|
||
|
'hu-Lari',
|
||
|
'hu-Pengő',
|
||
|
"pl-Złoty",
|
||
|
"us-USD",
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* 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");
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|