prestation/Controleur/ControleurFicheadherent.php
2025-12-05 10:42:46 +00:00

34 lines
1.2 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
require_once 'Modele/Beneficiaire.php';
require_once 'Modele/Garantieadherent.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurFicheadherent extends Controleur {
private $menuvue;
private $adherent;
private $beneficiaire;
private $garantieadherent;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Ficheadherent");
$this->adherent = new Adherent();
$this->beneficiaire = new Beneficiaire();
$this->garantieadherent = new Garantieadherent();
}
public function index() {
$idPolice = $_SESSION['p_idPolice_C'];
$idAdherent = $this->requete->getParametre("id");
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
$beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent);
$garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent);
$this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'garantieadherents' => $garantieadherents));
}
}