diff --git a/src/MDAppointmentAttendanceModeSet.php b/src/MDAppointmentAttendanceModeSet.php new file mode 100644 index 0000000..85f7abd --- /dev/null +++ b/src/MDAppointmentAttendanceModeSet.php @@ -0,0 +1,38 @@ + + */ +declare(strict_types = 1); + +/** + * Class containing available attendance modes. + */ +final class MDAppointmentAttendanceModeSet extends MDValueSet { + + const MODES = [ + 'offline', + 'online', + 'mixed', + ]; + + const MODES_TO_SCHEMA_ORG = [ + 'offline' => 'https://schema.org/OfflineEventAttendanceMode', + 'online' => 'https://schema.org/OnlineEventAttendanceMode', + 'mixed' => 'https://schema.org/MixedEventAttendanceMode', + ]; + + /** + * Gets a list of the entries in a translated version. + * + * @param MDTlLoader $tlLoader Translation loader. + * + * @return array + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::AVAILABLE_ROLES, "appointment_attendance_modes", "appointment_attendance_modes"); + + } +} diff --git a/src/MDAppointmentContributorsSet.php b/src/MDAppointmentContributorsSet.php new file mode 100644 index 0000000..1a57406 --- /dev/null +++ b/src/MDAppointmentContributorsSet.php @@ -0,0 +1,31 @@ + + */ +declare(strict_types = 1); + +/** + * Class containing available contributor roles. + */ +final class MDAppointmentContributorsSet extends MDValueSet { + + const AVAILABLE_ROLES = [ + 'organizer', + 'presenter', + ]; + + /** + * Gets a list of the entries in a translated version. + * + * @param MDTlLoader $tlLoader Translation loader. + * + * @return array + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::AVAILABLE_ROLES, "appointment_contributor_roles", "appointment_contributor_roles"); + + } +} diff --git a/src/MDAppointmentStatusSet.php b/src/MDAppointmentStatusSet.php new file mode 100644 index 0000000..4778cbe --- /dev/null +++ b/src/MDAppointmentStatusSet.php @@ -0,0 +1,39 @@ + + */ +declare(strict_types = 1); + +/** + * Class containing available status. + */ +final class MDAppointmentStatusSet extends MDValueSet { + + const STATUS = [ + 'scheduled', + 'cancelled', + 'moved_online', + 'postponed', + ]; + + const STATUS_TO_SCHEMA_ORG = [ + 'scheduled' => 'https://schema.org/EventScheduled', + 'cancelled' => 'https://schema.org/EventCancelled', + 'moved_online' => 'https://schema.org/EventMovedOnline', + 'postponed' => 'https://schema.org/EventPostponed', + ]; + + /** + * Gets a list of the entries in a translated version. + * + * @param MDTlLoader $tlLoader Translation loader. + * + * @return array + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::STATUS, "appointment_status", "appointment_status"); + + } +} diff --git a/src/MDExhibitionContributorsSet.php b/src/MDExhibitionContributorsSet.php new file mode 100644 index 0000000..8ceb4a1 --- /dev/null +++ b/src/MDExhibitionContributorsSet.php @@ -0,0 +1,34 @@ + + */ +declare(strict_types = 1); + +/** + * Class containing available contributor roles. + */ +final class MDExhibitionContributorsSet extends MDValueSet { + + const AVAILABLE_ROLES = [ + 'concept', + 'curator', + 'design', + 'coordinator', + 'protagonist', + ]; + + /** + * Gets a list of the entries in a translated version. + * + * @param MDTlLoader $tlLoader Translation loader. + * + * @return array + */ + public static function getSortedList(MDTlLoader $tlLoader):array { + return parent::getTlSortedList($tlLoader, self::AVAILABLE_ROLES, "exhibition_contributor_roles", "exhibition_contributor_roles"); + + } +}