diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php index 7c7428b45..5696a9780 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php @@ -80,6 +80,7 @@ class ActivityUsersJobAggregator implements AggregatorInterface ]); } + public function getFormDefaultData(): array { return ['job_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php index 7c02e929f..41ef1934e 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php @@ -79,6 +79,7 @@ class ActivityUsersScopeAggregator implements AggregatorInterface 'required' => true, ]); } + public function getFormDefaultData(): array { return ['scope_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php index ce00d81bd..de8fea079 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php @@ -79,6 +79,7 @@ class CreatorScopeAggregator implements AggregatorInterface 'required' => true, ]); } + public function getFormDefaultData(): array { return ['scope_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php index be54e2251..a7a7e403e 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php @@ -81,6 +81,7 @@ class ByUserJobAggregator implements AggregatorInterface 'required' => true ]); } + public function getFormDefaultData(): array { return ['job_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php index ad2000a6c..168d38433 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php @@ -79,6 +79,7 @@ class ByUserScopeAggregator implements AggregatorInterface 'required' => true, ]); } + public function getFormDefaultData(): array { return ['scope_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php index a97fcb1c1..867eca230 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php @@ -95,7 +95,10 @@ class ByUserJobFilter implements FilterInterface public function getFormDefaultData(): array { - return ['job_at' => new RollingDate(RollingDate::T_TODAY)]; + return [ + 'jobs' => [], + 'job_at' => new RollingDate(RollingDate::T_TODAY) + ]; } public function getTitle(): string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php index 9c75d0ed8..ce6905378 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php @@ -98,7 +98,10 @@ class ByUserScopeFilter implements FilterInterface public function getFormDefaultData(): array { - return ['scope_at' => new RollingDate(RollingDate::T_TODAY)]; + return [ + 'scopes' => [], + 'scope_at' => new RollingDate(RollingDate::T_TODAY) + ]; } public function getTitle(): string diff --git a/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php b/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php index 34e973bce..11a26eea6 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php +++ b/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php @@ -88,12 +88,6 @@ class JobFilter implements FilterInterface 'required' => true, ]); } - public function getFormDefaultData(): array - { - return [ - 'job_at' => new RollingDate(RollingDate::T_TODAY), - ]; - } public function describeAction($data, $format = 'string'): array { @@ -110,6 +104,14 @@ class JobFilter implements FilterInterface ]]; } + public function getFormDefaultData(): array + { + return [ + 'job' => [], + 'job_at' => new RollingDate(RollingDate::T_TODAY), + ]; + } + public function getTitle(): string { return 'Filter calendars by agent job'; diff --git a/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php b/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php index 7f578ac86..5a310c38b 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php +++ b/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php @@ -83,10 +83,6 @@ class ScopeFilter implements FilterInterface 'required' => true, ]); } - public function getFormDefaultData(): array - { - return ['scope_at' => new RollingDate(RollingDate::T_TODAY)]; - } public function describeAction($data, $format = 'string'): array { @@ -103,6 +99,14 @@ class ScopeFilter implements FilterInterface ]]; } + public function getFormDefaultData(): array + { + return [ + 'scope' => [], + 'scope_at' => new RollingDate(RollingDate::T_TODAY) + ]; + } + public function getTitle(): string { return 'Filter calendars by agent scope'; diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php index 81e5e78dc..50c4e6f9b 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php @@ -79,6 +79,7 @@ class CreatorJobAggregator implements AggregatorInterface 'required' => true ]); } + public function getFormDefaultData(): array { return ['job_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregator.php index 80e65664e..65b2dc38b 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregator.php @@ -80,6 +80,7 @@ final readonly class UserJobAggregator implements AggregatorInterface 'required' => true ]); } + public function getFormDefaultData(): array { return ['job_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php index e7a1f25bb..6012bbcab 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php @@ -80,6 +80,7 @@ final readonly class JobAggregator implements AggregatorInterface 'required' => true ]); } + public function getFormDefaultData(): array { return ['job_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php index 606bb05e5..b6c799079 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php @@ -80,6 +80,7 @@ final readonly class ScopeAggregator implements AggregatorInterface 'required' => true, ]); } + public function getFormDefaultData(): array { return ['scope_at' => new RollingDate(RollingDate::T_TODAY)]; diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php index e31e51ccc..56c16fd73 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php @@ -102,10 +102,6 @@ class UserJobFilter implements FilterInterface 'required' => true, ]); } - public function getFormDefaultData(): array - { - return ['date_calc' => new RollingDate(RollingDate::T_TODAY)]; - } public function describeAction($data, $format = 'string') { @@ -122,6 +118,14 @@ class UserJobFilter implements FilterInterface ]; } + public function getFormDefaultData(): array + { + return [ + 'jobs' => [], + 'date_calc' => new RollingDate(RollingDate::T_TODAY) + ]; + } + public function getTitle(): string { return 'export.filter.course.by_user_job.Filter by user job'; diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php index 607e442eb..1d2ccf839 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php @@ -101,10 +101,6 @@ class UserScopeFilter implements FilterInterface 'required' => true, ]); } - public function getFormDefaultData(): array - { - return ['date_calc' => new RollingDate(RollingDate::T_TODAY)]; - } public function describeAction($data, $format = 'string') { @@ -121,6 +117,14 @@ class UserScopeFilter implements FilterInterface ]; } + public function getFormDefaultData(): array + { + return [ + 'scopes' => [], + 'date_calc' => new RollingDate(RollingDate::T_TODAY) + ]; + } + public function getTitle(): string { return 'export.filter.course.by_user_scope.Filter by user scope'; diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/JobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/JobFilter.php index a05e4b1d2..2ad01c3ff 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/JobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/JobFilter.php @@ -94,10 +94,6 @@ class JobFilter implements FilterInterface ]) ; } - public function getFormDefaultData(): array - { - return ['job_at' => new RollingDate(RollingDate::T_TODAY)]; - } public function describeAction($data, $format = 'string') { @@ -114,6 +110,14 @@ class JobFilter implements FilterInterface ]]; } + public function getFormDefaultData(): array + { + return [ + 'job' => [], + 'job_at' => new RollingDate(RollingDate::T_TODAY) + ]; + } + public function getTitle(): string { return 'export.filter.work.by_user_job.Filter by treating agent job'; diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php index 465569198..c5041aa6c 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php @@ -92,10 +92,6 @@ class ScopeFilter implements FilterInterface ]) ; } - public function getFormDefaultData(): array - { - return ['scope_at' => new RollingDate(RollingDate::T_TODAY)]; - } public function describeAction($data, $format = 'string'): array { @@ -112,6 +108,14 @@ class ScopeFilter implements FilterInterface ]]; } + public function getFormDefaultData(): array + { + return [ + 'scope' => [], + 'scope_at' => new RollingDate(RollingDate::T_TODAY) + ]; + } + public function getTitle(): string { return 'export.filter.work.by_user_scope.Filter by treating agent scope';