Add MDObjectPublicationBackgrounds for controlling publication
backgrounds
This commit is contained in:
parent
388f843144
commit
45e8d4e529
2
l18n
2
l18n
|
@ -1 +1 @@
|
||||||
Subproject commit 7a97fb5961d17e0bf4e6186a79e248fa62680350
|
Subproject commit fd572dd64f531cbc64755efc9c1cefecc9f8e096
|
35
src/MDObjectPublicationBackgrounds.php
Normal file
35
src/MDObjectPublicationBackgrounds.php
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<?PHP
|
||||||
|
/**
|
||||||
|
* Contains a class for controlling the list of available marking types.
|
||||||
|
*
|
||||||
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||||
|
*/
|
||||||
|
declare(strict_types = 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class containing available marking types.
|
||||||
|
*/
|
||||||
|
class MDObjectPublicationBackgrounds extends MDValueSet {
|
||||||
|
|
||||||
|
const PUBLICATION_BACKGROUNDS = [
|
||||||
|
'0', // Image published
|
||||||
|
'1', // Transcript published
|
||||||
|
'2', // Discussed
|
||||||
|
'3', // Rezensiert
|
||||||
|
'4', // Referenced
|
||||||
|
'5', // Advertised
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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::PUBLICATION_BACKGROUNDS, "object_publication_background", "object_publication_background");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user