Add allowed value set for closer location (e.g. for archeological
objects)
This commit is contained in:
parent
ee24739002
commit
3e58dce1e3
2
l18n
2
l18n
|
@ -1 +1 @@
|
|||
Subproject commit 03d5705fc36a1c69d4f0a6fad517421c2cf082f8
|
||||
Subproject commit 38b7b31fba2ac8be2dc1467fdf84bed9430fc073
|
32
src/MDCloserLocationTypesSet.php
Normal file
32
src/MDCloserLocationTypesSet.php
Normal 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");
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user