Extend MDTagRelationType by taxon, mentioned subject and topic
Close #41, close #42
This commit is contained in:
2
l18n
2
l18n
Submodule l18n updated: 2c28afedef...2784220447
@@ -18,6 +18,9 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
|
|||||||
case material;
|
case material;
|
||||||
case technique;
|
case technique;
|
||||||
case display_subject;
|
case display_subject;
|
||||||
|
case topic;
|
||||||
|
case mentioned;
|
||||||
|
case taxon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a value of this type based on a string.
|
* Returns a value of this type based on a string.
|
||||||
@@ -34,6 +37,9 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
|
|||||||
'material' => self::material,
|
'material' => self::material,
|
||||||
'technique' => self::technique,
|
'technique' => self::technique,
|
||||||
'display_subject' => self::display_subject,
|
'display_subject' => self::display_subject,
|
||||||
|
'topic' => self::topic,
|
||||||
|
'mentioned' => self::mentioned,
|
||||||
|
'taxon' => self::taxon,
|
||||||
default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -54,6 +60,9 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
|
|||||||
2 => self::material,
|
2 => self::material,
|
||||||
3 => self::technique,
|
3 => self::technique,
|
||||||
4 => self::display_subject,
|
4 => self::display_subject,
|
||||||
|
5 => self::topic,
|
||||||
|
6 => self::mentioned,
|
||||||
|
7 => self::taxon,
|
||||||
default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -119,6 +128,9 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
|
|||||||
self::material => 2,
|
self::material => 2,
|
||||||
self::technique => 3,
|
self::technique => 3,
|
||||||
self::display_subject => 4,
|
self::display_subject => 4,
|
||||||
|
self::topic => 5,
|
||||||
|
self::mentioned => 6,
|
||||||
|
self::taxon => 7,
|
||||||
// default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
// default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user