mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Merge branch 'social_action_exports' of gitlab.com:Chill-Projet/chill-bundles into social_action_exports
This commit is contained in:
commit
3a73af4fd0
@ -21,8 +21,9 @@ use Doctrine\ORM\Query;
|
|||||||
use Doctrine\ORM\QueryBuilder;
|
use Doctrine\ORM\QueryBuilder;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use LogicException;
|
use LogicException;
|
||||||
|
use Symfony\Component\Security\Core\Role\Role;
|
||||||
|
|
||||||
class CountSocialAction implements ExportInterface, GroupedExportInterface
|
class CountSocialActions implements ExportInterface, GroupedExportInterface
|
||||||
{
|
{
|
||||||
protected SocialActionRepository $socialActionRepository;
|
protected SocialActionRepository $socialActionRepository;
|
||||||
|
|
||||||
@ -90,9 +91,10 @@ class CountSocialAction implements ExportInterface, GroupedExportInterface
|
|||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function requiredRole(): string
|
public function requiredRole(): Role
|
||||||
{
|
{
|
||||||
return AccompanyingPeriodVoter::STATS;
|
//TODO change to string, but changes needed also in exportManager and possibly other locations.
|
||||||
|
return new Role(AccompanyingPeriodVoter::STATS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function supportsModifiers(): array
|
public function supportsModifiers(): array
|
||||||
|
@ -44,6 +44,8 @@ services:
|
|||||||
class: Chill\PersonBundle\Export\Export\CountSocialActions
|
class: Chill\PersonBundle\Export\Export\CountSocialActions
|
||||||
autowire: true
|
autowire: true
|
||||||
autoconfigure: true
|
autoconfigure: true
|
||||||
|
tags:
|
||||||
|
- { name: chill.export, alias: count_social_actions }
|
||||||
|
|
||||||
chill.person.export.filter_gender:
|
chill.person.export.filter_gender:
|
||||||
class: Chill\PersonBundle\Export\Filter\GenderFilter
|
class: Chill\PersonBundle\Export\Filter\GenderFilter
|
||||||
|
@ -340,7 +340,7 @@ Create a list of duplicate people: Créer la liste des personnes détectées com
|
|||||||
|
|
||||||
Exports of accompanying courses: Exports des parcours d'accompagnement
|
Exports of accompanying courses: Exports des parcours d'accompagnement
|
||||||
Count accompanying courses: Nombre de parcours
|
Count accompanying courses: Nombre de parcours
|
||||||
Count social actions: Nombre d'actions d'accompagnement
|
Count social actions: Nombre d'actions
|
||||||
Count accompanying courses by various parameters: Compte le nombre de parcours en fonction de différents filtres.
|
Count accompanying courses by various parameters: Compte le nombre de parcours en fonction de différents filtres.
|
||||||
Count social actions by various parameters: Compte le nombre d'actions d'accompagnement en fonction de différents filtres.
|
Count social actions by various parameters: Compte le nombre d'actions d'accompagnement en fonction de différents filtres.
|
||||||
Accompanying courses duration: Durée moyenne des parcours
|
Accompanying courses duration: Durée moyenne des parcours
|
||||||
|
Loading…
x
Reference in New Issue
Block a user