Skip to content
Snippets Groups Projects
Select Git revision
  • 0160845961cb8915b390b2cf205bd66a5358201e
  • master default protected
  • zf-3.x
  • dev-zf-3.x
  • 4.0.5
  • 4.0.4
  • 4.0.3
  • 4.0.2
  • 4.0.1
  • 4.0.0
  • 0.8.0
  • 0.7.1
  • 0.7.0
  • 0.6.0
  • 0.5.8
  • 0.5.7
  • 0.5.6
  • 0.5.5
  • 0.5.4
  • 0.5.3
  • 0.5.2
  • 0.5.1
  • 0.5
  • 0.4
24 results

OctopusController.php

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');
        }
    
    }