MDAllowedValueSets/src/MDEntryTypesSet.php

47 lines
1.2 KiB
PHP
Raw Normal View History

2020-08-07 17:36:10 +02:00
<?PHP
/**
* Contains a class for controlling the list of available marking types.
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
/**
* Class containing available marking types.
*/
2020-08-29 17:21:18 +02:00
final class MDEntryTypesSet extends MDValueSet {
2020-08-07 17:36:10 +02:00
const ENTRY_TYPES = [
'0', //
'1', // Schenkung
'2', // Kauf
'3', // Grabung
'4', // Notbergung
'5', // Erbschaft / Nachlass
'6', // Stiftung
'7', // Enteignung
'8', // Ursprungsbestand
'9', // Leihgabe
'10', // Tausch
'11', // Eigenproduktion
'12', // Material Strain (Törzsanyag)
'14', // Vorlass
'15', // Fund
'16', // Dauerleihgabe
'98', // Ungeklärt
'99', // Anderer rechtmäßiger Zugang
];
/**
* Gets a sorted 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::ENTRY_TYPES, "entry_types", "entry_types");
}
}