Add class MDConcEventTypes for listing event type IDs by event type
names
This commit is contained in:
parent
499a2b44b6
commit
c39bbe977f
48
src/MDConcEventTypes.php
Normal file
48
src/MDConcEventTypes.php
Normal 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,
|
||||
|
||||
];
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user