Add class MDConcEventTypes for listing event type IDs by event type

names
This commit is contained in:
Joshua Ramon Enslin 2022-04-13 02:34:05 +02:00
parent 499a2b44b6
commit c39bbe977f
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

48
src/MDConcEventTypes.php Normal file
View File

@ -0,0 +1,48 @@
<?PHP
/**
* Constains lists for categorizing event types.
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
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,
];
}