Add allowed value set for closer location (e.g. for archeological

objects)
This commit is contained in:
Joshua Ramon Enslin 2021-10-21 01:38:17 +02:00
parent ee24739002
commit 3e58dce1e3
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 33 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit 03d5705fc36a1c69d4f0a6fad517421c2cf082f8 Subproject commit 38b7b31fba2ac8be2dc1467fdf84bed9430fc073

View File

@ -0,0 +1,32 @@
<?PHP
/**
* Contains a class of available types of closer locations.
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
/**
* Class containing available types of closer locations.
*/
final class MDCloserLocationTypesSet extends MDValueSet {
const CLOSER_LOCATION_TYPES = [
"0", // ''
"1", // Place of recording
"2", // Place of finding
"3", // Previous place
];
/**
* 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::CLOSER_LOCATION_TYPES, "closer_location_types_set", "closer_location_types_set");
}
}