MDAllowedValueSets/src/MDMarkingTypesSet.php

37 lines
813 B
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>
*/
/**
* Class containing available marking types.
*/
class MDMarkingTypesSet extends MDValueSet {
2020-08-06 14:57:46 +02:00
const MARKING_TYPES = [
'signature',
'engraving',
'watermark',
'scratch',
'stamp',
'overprint',
'embossing',
'handwritten',
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::getSortedList($tlLoader, self::MARKING_TYPES, "marking_types", "marking_types");
}
2020-08-06 14:57:46 +02:00
}