From cc1a23c2fda3eb43be2bff04fb46687f5bc12b44 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sat, 15 Oct 2022 15:13:26 +0200 Subject: [PATCH] Add new controlled list for types of processes happening in a museum --- src/MDProcessTypesSet.php | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/MDProcessTypesSet.php diff --git a/src/MDProcessTypesSet.php b/src/MDProcessTypesSet.php new file mode 100644 index 0000000..293e1e9 --- /dev/null +++ b/src/MDProcessTypesSet.php @@ -0,0 +1,41 @@ + + */ +declare(strict_types = 1); + +/** + * Contains a class for listing the possible types of internal processes in a museum. + */ +final class MDProcessTypesSet extends MDValueSet { + + const TYPES = [ + 'project', + 'grant_application', + 'exhibition', + 'appointment', // This is MD's internally used name for events at the museum + 'loan_incoming', + 'loan_outgoing', + 'employment_ad', + 'purchase', + 'deaccession', + 'construction', + 'pest_control_campaign', + 'pr_campaign', + 'relocation', + ]; + + /** + * 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::POSITIONS, "process_types", "process_types"); + + } +}