2020-09-01 23:32:10 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
2022-09-27 01:10:11 +02:00
|
|
|
* Contains a class of available source types.
|
2020-09-01 23:32:10 +02:00
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
/**
|
2022-09-27 01:10:11 +02:00
|
|
|
* Class containing static functions for getting available source types on md.
|
2020-09-01 23:32:10 +02:00
|
|
|
*/
|
|
|
|
final class MDSourceTypeSet extends MDValueSet {
|
|
|
|
|
|
|
|
const SOURCE_TYPES = [
|
|
|
|
'article',
|
|
|
|
'inbook',
|
|
|
|
'book',
|
|
|
|
'phdthesis',
|
|
|
|
'electronical',
|
2022-02-09 02:13:10 +01:00
|
|
|
'patent',
|
|
|
|
'unpublished',
|
2020-09-01 23:32:10 +02:00
|
|
|
'misc',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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::SOURCE_TYPES, "source_type_set", "source_type_set");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|