2020-08-06 14:57:46 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Contains a class for controlling the list of available marking types.
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
2020-08-07 00:12:49 +02:00
|
|
|
declare(strict_types = 1);
|
2020-08-06 14:57:46 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class containing available marking types.
|
|
|
|
*/
|
2020-08-29 17:21:18 +02:00
|
|
|
final class MDMarkingTypesSet extends MDValueSet {
|
2020-08-06 14:57:46 +02:00
|
|
|
|
2024-06-11 22:15:59 +02:00
|
|
|
public const MARKING_TYPES = [
|
2020-08-06 14:57:46 +02:00
|
|
|
'signature',
|
|
|
|
'engraving',
|
|
|
|
'watermark',
|
|
|
|
'scratch',
|
|
|
|
'stamp',
|
|
|
|
'overprint',
|
2020-08-06 15:22:23 +02:00
|
|
|
'embossing',
|
2022-02-18 02:11:06 +01:00
|
|
|
'embroidered',
|
2020-08-06 15:22:23 +02:00
|
|
|
'handwritten',
|
2022-02-18 02:51:17 +01:00
|
|
|
'screwed',
|
2022-02-18 03:00:48 +01:00
|
|
|
'burnt_in',
|
2022-02-18 03:17:51 +01:00
|
|
|
'riveted',
|
2022-02-18 13:35:42 +01:00
|
|
|
'nailed',
|
2022-02-18 13:55:48 +01:00
|
|
|
'punched',
|
|
|
|
'hallmarked',
|
2022-02-18 14:51:16 +01:00
|
|
|
'scarified',
|
2022-02-18 15:21:27 +01:00
|
|
|
'cast',
|
2022-02-18 02:31:24 +01:00
|
|
|
'sewn',
|
2021-07-12 15:34:59 +02:00
|
|
|
'glued',
|
2023-04-25 16:29:14 +02:00
|
|
|
'painted',
|
2024-12-09 14:57:45 +01:00
|
|
|
'drawn',
|
2020-08-06 14:57:46 +02:00
|
|
|
];
|
|
|
|
|
2020-08-06 18:27:25 +02:00
|
|
|
/**
|
|
|
|
* 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 {
|
2020-08-06 18:42:38 +02:00
|
|
|
return parent::getTlSortedList($tlLoader, self::MARKING_TYPES, "marking_types", "marking_types");
|
2020-08-06 18:27:25 +02:00
|
|
|
|
|
|
|
}
|
2020-08-06 14:57:46 +02:00
|
|
|
}
|