MDAllowedValueSets/src/MDMarkingTypesSet.php

50 lines
1.1 KiB
PHP
Raw Normal View History

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>
*/
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
public const MARKING_TYPES = [
2020-08-06 14:57:46 +02:00
'signature',
'engraving',
'watermark',
'scratch',
'stamp',
'overprint',
'embossing',
2022-02-18 02:11:06 +01:00
'embroidered',
'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',
'punched',
'hallmarked',
2022-02-18 14:51:16 +01:00
'scarified',
'cast',
2022-02-18 02:31:24 +01:00
'sewn',
2021-07-12 15:34:59 +02:00
'glued',
'painted',
'drawn',
2020-08-06 14:57:46 +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 {
return parent::getTlSortedList($tlLoader, self::MARKING_TYPES, "marking_types", "marking_types");
}
2020-08-06 14:57:46 +02:00
}