Commit fdf343e3 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

HasIndicateursService

parent 49b4d8f3
Loading
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -15,6 +15,17 @@ class HasIndicateursService
    use CategorieServiceAwareTrait;
    use IndicateurServiceAwareTrait;

    /** EXEMPLE EN ATTENDANT LA DOC */
//        $listing = [
//            [
//                'code' => 'CAMP_' . $campagne->getId(),
//                'libelle' => "Indicateurs liés à la campagne " . $campagne->getAnnee(),
//                'indicateurs' => [
//                    ['code' => 'EP', 'libelle' => "Liste des entretiens professionnels", "requete" => "select e.* from entretienprofessionnel e join public.entretienprofessionnel_campagne ec on e.campagne_id = ec.id where ec.id = :campagne"],
//                    ['code' => 'AUTRE', 'libelle' => "Autre", "requete" => "select * from unicaen_utilisateur_role"],
//                ],
//            ],
//        ];

    public function ajouterIndicateurs(HasIndicateursInterface $object, array $listing, string $key = ":object"): string
    {