From c39bbe977f23f08c8c5532ba41f4c260a6e51c48 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 13 Apr 2022 02:34:05 +0200 Subject: [PATCH] Add class MDConcEventTypes for listing event type IDs by event type names --- src/MDConcEventTypes.php | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/MDConcEventTypes.php diff --git a/src/MDConcEventTypes.php b/src/MDConcEventTypes.php new file mode 100644 index 0000000..abac4f3 --- /dev/null +++ b/src/MDConcEventTypes.php @@ -0,0 +1,48 @@ + + */ +declare(strict_types = 1); + +/** + * Provides a list for finding the respective event type ID for a given event type name. + */ +final class MDConcEventTypes { + + const EVENT_TYPE_NAMES_TO_ID = [ + + // 1: Created + "Hergestellt" => 1, + "Herstellung" => 1, + "Bearbeitung" => 1, + "Erschaffung/Herstellung" => 1, + + // 2: Was found + // 3: Published + // 4: Template creation + // 5: Displayed actor + // 6: Was used + "Ausstellung" => 6, + "Verwendungsort" => 6, + "Wurde genutzt" => 6, + + "Fotografische Aufnahme" => 10, + + // 20: Copied + // 21: Lived + + // 22: Related place + "Geografischer Bezug" => 22, + "Geografika" => 22, + "Karteninhalt" => 22, + + // 25: Commissioned + "Auftrag" => 25, + "Commissioning" => 25, + "Beauftragung" => 25, + + ]; + +}