Skip to content
Snippets Groups Projects
Select Git revision
  • 561494e5aa26cfb0bc5cebfb056d479ac5f4b9fd
  • master default protected
  • b24
  • ll-workflow
  • alc-scindage-donnees-pj
  • FJ_LL_Tbl_Contrat
  • alc-docker-node
  • ll-apiplatform
  • php84
  • ll-rgpd
  • b23
  • alc-filtre-type-intervenant
  • ll-sans-mdb5
  • formules-ancienne-infra
  • ll-formules
  • alc-intervenant-dmep
  • ll-suppr-v_vol-s
  • b20
  • ll-postgresql
  • b23.0.1
  • b22
  • 24.8
  • 24.7
  • 24.6
  • 24.5
  • 24.4
  • 24.3
  • 24.2
  • 24.1
  • 24.0
  • 23.15
  • 24.0-beta19
  • 24.0-beta18
  • 24.0-beta17
  • 24.0-beta16
  • 24.0-beta15
  • 24.0-beta14
  • 24.0-beta13
  • 23.14
  • 24.0-beta12
  • 24.0-beta11
41 results

ExportRhController.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ExportRhController.php 7.70 KiB
    <?php
    
    namespace ExportRh\Controller;
    
    
    use Application\Controller\AbstractController;
    use Application\Service\Traits\ContextServiceAwareTrait;
    use Application\Service\Traits\DossierServiceAwareTrait;
    use ExportRh\Form\ExportRhForm;
    use ExportRh\Form\Traits\ExportRhFormAwareTrait;
    use ExportRh\Service\ExportRhService;
    use ExportRh\Service\ExportRhServiceAwareTrait;
    use UnicaenSiham\Exception\SihamException;
    
    class ExportRhController extends AbstractController
    {
    
        use ExportRhServiceAwareTrait;
        use ContextServiceAwareTrait;
        use DossierServiceAwareTrait;
        use ExportRhFormAwareTrait;
    
        /**
         * @var ExportRhService $exportRhService
         */
        protected $exportRhService;
    
    
    
        public function __construct(ExportRhService $exportRhService)
        {
            $this->exportRhService = $exportRhService;
        }
    
    
    
        public function indexAction()
        {
            return [];
        }
    
    
    
        public function chercherIntervenantRhAction(): array
        {
            $connecteurRh = $this->getExportRhService();
    
            $params = [
                'nomUsuel' => '',
                'prenom'   => '',
            ];
    
            $listIntervenantRh = [];
    
            try {
    
                if ($this->getRequest()->isPost()) {
    
                    $nomUsuel          = $this->getRequest()->getPost('nomUsuel');
                    $prenom            = $this->getRequest()->getPost('prenom');
                    $insee             = $this->getRequest()->getPost('insee');
                    $listIntervenantRh = $connecteurRh->getListIntervenantRh($nomUsuel, $prenom, $insee);
                }
            } catch (SihamException $e) {
                $this->flashMessenger()->addErrorMessage($e->getMessage());
            }
    
            return compact('listIntervenantRh');
        }