From 187dd4ac232b7daf6a7daa47ba6decde7ef72e1b Mon Sep 17 00:00:00 2001 From: Amin Date: Wed, 8 May 2024 13:43:19 +0200 Subject: [PATCH 1/2] feat: add filter "German language skills for internation students" --- src/Application/Filter/FilterFactory.php | 3 ++- ...uageSkillsForInternationalStudentsFilter.php | 17 +++++++++++++++++ ...geSkillsForInternationalStudentsTaxonomy.php | 4 +++- .../Repository/WpQueryArgsBuilder.php | 2 ++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/Application/Filter/GermanLanguageSkillsForInternationalStudentsFilter.php diff --git a/src/Application/Filter/FilterFactory.php b/src/Application/Filter/FilterFactory.php index 13f075d..869a695 100644 --- a/src/Application/Filter/FilterFactory.php +++ b/src/Application/Filter/FilterFactory.php @@ -7,16 +7,17 @@ final class FilterFactory { public const SUPPORTED_FILTERS = [ + AdmissionRequirementTypeFilter::KEY => AdmissionRequirementTypeFilter::class, AreaOfStudyFilter::KEY => AreaOfStudyFilter::class, AttributeFilter::KEY => AttributeFilter::class, DegreeFilter::KEY => DegreeFilter::class, FacultyFilter::KEY => FacultyFilter::class, + GermanLanguageSkillsForInternationalStudentsFilter::KEY => GermanLanguageSkillsForInternationalStudentsFilter::class, SearchKeywordFilter::KEY => SearchKeywordFilter::class, SemesterFilter::KEY => SemesterFilter::class, StudyLocationFilter::KEY => StudyLocationFilter::class, SubjectGroupFilter::KEY => SubjectGroupFilter::class, TeachingLanguageFilter::KEY => TeachingLanguageFilter::class, - AdmissionRequirementTypeFilter::KEY => AdmissionRequirementTypeFilter::class, ]; public function create(string $filterName, mixed $value): ?Filter diff --git a/src/Application/Filter/GermanLanguageSkillsForInternationalStudentsFilter.php b/src/Application/Filter/GermanLanguageSkillsForInternationalStudentsFilter.php new file mode 100644 index 0000000..a8b7e6b --- /dev/null +++ b/src/Application/Filter/GermanLanguageSkillsForInternationalStudentsFilter.php @@ -0,0 +1,17 @@ + Date: Wed, 8 May 2024 13:44:05 +0200 Subject: [PATCH 2/2] feat: mark "German language skills for international students" sortable --- src/Application/Repository/CollectionCriteria.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Application/Repository/CollectionCriteria.php b/src/Application/Repository/CollectionCriteria.php index a253cf1..b9cc924 100644 --- a/src/Application/Repository/CollectionCriteria.php +++ b/src/Application/Repository/CollectionCriteria.php @@ -28,6 +28,7 @@ final class CollectionCriteria DegreeProgram::START, DegreeProgram::LOCATION, DegreeProgram::ADMISSION_REQUIREMENTS, + DegreeProgram::GERMAN_LANGUAGE_SKILLS_FOR_INTERNATIONAL_STUDENTS, ]; /**