radiantassure/Controleur/ControleurPlafondadherent.php
2025-12-07 09:35:13 +00:00

32 lines
1.2 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
require_once 'Modele/Garantieadherent.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurPlafondadherent extends Controleur {
private $menuvue;
private $adherent;
private $garantieadherent;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Plafondadherent");
$this->adherent = new Adherent();
$this->garantieadherent = new Garantieadherent();
}
public function index()
{
$idAdherent = $_SESSION['idAdherent_C'];
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
$exercieReference = $_SESSION['exercieReference_C'];
$idEntetecontrat = $_SESSION['idEntetecontrat'];
$entecontrats = $this->garantieadherent->getlisteentetecontratadherent($idAdherent);
$garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat);
$this->genererVue(array('adherent' => $adherent, 'garantieadherents' => $garantieadherents, 'entecontrats' => $entecontrats));
}
}