From 45e8d4e52930df28361f2483b701a6b717c95344 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Fri, 7 Aug 2020 18:01:22 +0200 Subject: [PATCH] Add MDObjectPublicationBackgrounds for controlling publication backgrounds --- l18n | 2 +- src/MDObjectPublicationBackgrounds.php | 35 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/MDObjectPublicationBackgrounds.php diff --git a/l18n b/l18n index 7a97fb5..fd572dd 160000 --- a/l18n +++ b/l18n @@ -1 +1 @@ -Subproject commit 7a97fb5961d17e0bf4e6186a79e248fa62680350 +Subproject commit fd572dd64f531cbc64755efc9c1cefecc9f8e096 diff --git a/src/MDObjectPublicationBackgrounds.php b/src/MDObjectPublicationBackgrounds.php new file mode 100644 index 0000000..015034c --- /dev/null +++ b/src/MDObjectPublicationBackgrounds.php @@ -0,0 +1,35 @@ + + */ +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 + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::PUBLICATION_BACKGROUNDS, "object_publication_background", "object_publication_background"); + + } + +}