Add tag relation type display_subject

This commit is contained in:
Joshua Ramon Enslin 2023-05-10 12:06:15 +02:00
parent c3d4f3f03a
commit f9366b686e
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 5 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit 64e2ae642a90aa1ecee9cd17abde3a8cf55b54d9 Subproject commit 80bc9b0b98b2bc58f0d9de1ed61ca42a52730525

View File

@ -17,6 +17,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
case object_type; case object_type;
case material; case material;
case technique; case technique;
case display_subject;
/** /**
* Returns a value of this type based on a string. * Returns a value of this type based on a string.
@ -32,6 +33,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
'object_type' => self::object_type, 'object_type' => self::object_type,
'material' => self::material, 'material' => self::material,
'technique' => self::technique, 'technique' => self::technique,
'display_subject' => self::display_subject,
default => throw new MDpageParameterNotFromListException("Unknown tag relation type"), default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
}; };
@ -51,6 +53,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
1 => self::object_type, 1 => self::object_type,
2 => self::material, 2 => self::material,
3 => self::technique, 3 => self::technique,
4 => self::display_subject,
default => throw new MDpageParameterNotFromListException("Unknown tag relation type"), default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
}; };
@ -115,6 +118,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
self::object_type => 1, self::object_type => 1,
self::material => 2, self::material => 2,
self::technique => 3, self::technique => 3,
self::display_subject => 4,
// default => throw new MDpageParameterNotFromListException("Unknown tag relation type"), // default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
}; };