Skip to content
Snippets Groups Projects
Select Git revision
  • 32e06997c201e88a68cce22f9d841c93d06e6cfe
  • master default protected
  • 5.x
  • ll-php8-bs5
  • release_5_bs5
  • ll-php8
  • 4.x
  • laminas_migration
  • release_1.0.0.2
  • release_4.0.0
  • release_3.2.8
  • bootstrap4_migration
  • 1.0.0.3
  • 6.0.7
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 5.1.1
  • 6.0.0
  • 5.1.0
  • 5.0.0
  • 4.0.2
  • 3.2.11
  • 4.0.1
  • 3.2.10
  • 4.0.0
  • 1.0.0.2
  • 3.2.9
  • 3.2.8
32 results

unicaen-auth.global.php.dist

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    AdministrationController.php 1.37 KiB
    <?php
    
    namespace ExportRh\Controller;
    
    use Application\Controller\AbstractController;
    use ExportRh\Service\ExportRhServiceAwareTrait;
    
    
    class AdministrationController extends AbstractController
    {
    
        use ExportRhServiceAwareTrait;
    
        public function __construct()
        {
    
        }
    
    
    
        public function indexAction()
        {
            $erhs = $this->getExportRhService();
    
            $intervenantParams = $erhs->getIntervenantRHExportParams();
            $champs            = $erhs->getIntervenantRHParamsDescription();
    
            return compact('intervenantParams', 'champs');
        }
    
    
    
        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');
        }
    
    }