From 57a2163c1ab1daa1e2b86add4675940342d1f07a Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Fri, 7 Aug 2020 18:32:04 +0200 Subject: [PATCH] Add MDTitleTypesSet for controlling alternative title types --- src/MDTitleTypesSet.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/MDTitleTypesSet.php diff --git a/src/MDTitleTypesSet.php b/src/MDTitleTypesSet.php new file mode 100644 index 0000000..c890b84 --- /dev/null +++ b/src/MDTitleTypesSet.php @@ -0,0 +1,34 @@ + + */ +declare(strict_types = 1); + +/** + * Class containing available marking types. + */ +class MDTitleTypesSet extends MDValueSet { + + const TITLE_TYPES = [ + "", + "Science", + "Everyday speech", + "Colloquial speech", + "Dialect", + ]; + + /** + * 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::TITLE_TYPES, "title_types_set", "title_types_set"); + + } + +}