Add source type set (MDSourceTypeSet)
This commit is contained in:
parent
44f0d38601
commit
3d4b453ee6
2
l18n
2
l18n
|
@ -1 +1 @@
|
||||||
Subproject commit 9fb2ee21ac93cd883f326601b7e78eecad700582
|
Subproject commit 6d52ec1208b27211957290d23c1b5432ce032f16
|
36
src/MDSourceTypeSet.php
Normal file
36
src/MDSourceTypeSet.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?PHP
|
||||||
|
/**
|
||||||
|
* Contains a class of available licenses.
|
||||||
|
*
|
||||||
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||||
|
*/
|
||||||
|
declare(strict_types = 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class containing static functions for getting available licenses on md.
|
||||||
|
*/
|
||||||
|
final class MDSourceTypeSet extends MDValueSet {
|
||||||
|
|
||||||
|
const SOURCE_TYPES = [
|
||||||
|
'article',
|
||||||
|
'inbook',
|
||||||
|
'book',
|
||||||
|
'phdthesis',
|
||||||
|
'electronical',
|
||||||
|
'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");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user