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