2021-08-19 00:44:15 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Class containing available types for actor name variants. E.g. birth names,
|
|
|
|
* married names, etc.
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class containing available types for actor name variants. E.g. birth names,
|
|
|
|
* married names, etc.
|
|
|
|
*/
|
|
|
|
final class MDActorVariantTypesSet extends MDValueSet {
|
|
|
|
|
|
|
|
const ACTOR_VARIANT_TYPES = [
|
|
|
|
'',
|
|
|
|
'birth_name',
|
2021-10-06 13:05:28 +02:00
|
|
|
'civil_name',
|
2021-08-19 00:44:15 +02:00
|
|
|
'married_name',
|
|
|
|
'monastic_name',
|
|
|
|
'pseudonym',
|
|
|
|
'regnal_name',
|
2021-09-24 10:49:01 +02:00
|
|
|
'nickname',
|
2021-09-24 17:45:12 +02:00
|
|
|
'artist_name',
|
2021-10-10 14:08:06 +02:00
|
|
|
'generic_other_name',
|
2021-08-19 00:44:15 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a translated list of name variants.
|
|
|
|
*
|
|
|
|
* @param MDTlLoader $tlLoader Translation loader.
|
|
|
|
*
|
|
|
|
* @return array<string>
|
|
|
|
*/
|
|
|
|
public static function getActorVariantTypesTLed(MDTlLoader $tlLoader):array {
|
|
|
|
return parent::getTlUnsortedList($tlLoader, self::ACTOR_VARIANT_TYPES, "actor_variant_types_set", "actor_variant_types_set");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|