2020-08-06 21:05:40 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Contains a class for controlling the list of available place types.
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
2020-08-07 00:12:49 +02:00
|
|
|
declare(strict_types = 1);
|
2020-08-06 21:05:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class containing available place types.
|
|
|
|
*/
|
2020-08-29 17:21:18 +02:00
|
|
|
final class MDPlacetypesSet extends MDValueSet {
|
2020-08-06 21:05:40 +02:00
|
|
|
|
|
|
|
const PLACE_TYPE_IDS = [
|
|
|
|
'0', // => Administrativ
|
|
|
|
'1', // => Historisch
|
|
|
|
'2', // => Region - Landschaft - Naturpark
|
|
|
|
'3', // => Straße - Platz
|
|
|
|
'4', // => Bauwerk - Gebäude - Stadtpark - Kanal
|
|
|
|
'5', // => Berg - Gebirge
|
|
|
|
'6', // => Wald - Forst
|
|
|
|
'7', // => Fluss - See - Meer
|
|
|
|
'8', // => Insel - Atoll
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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::PLACE_TYPE_IDS, "placetypes", "tlPlacetypes");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|