From 02f75caa5594caf73a600c1ffe81800b26090173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cl=C3=A9ment?= Date: Wed, 8 Nov 2023 22:59:09 +0100 Subject: [PATCH] modification evenement listerEvenement --- php/src/metier/Evenement.php | 2 +- php/src/modele/UtilisateurModele.php | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/php/src/metier/Evenement.php b/php/src/metier/Evenement.php index 647ba01..97feef3 100755 --- a/php/src/metier/Evenement.php +++ b/php/src/metier/Evenement.php @@ -41,7 +41,7 @@ class Evenement /** * @param int $id - * @param Alumni $organisateur + * @param int $organisateur * @param string $titre * @param string $description * @param string $date diff --git a/php/src/modele/UtilisateurModele.php b/php/src/modele/UtilisateurModele.php index da17168..d66a034 100755 --- a/php/src/modele/UtilisateurModele.php +++ b/php/src/modele/UtilisateurModele.php @@ -66,18 +66,18 @@ class UtilisateurModele $gate = new \App\gateway\EvenementGateway($con); $data = $gate->getAllEvenement(); - $gateAlumni = new \App\gateway\AlumniGateway($con); - $dataAlumni = $gateAlumni->findById($data[0]['organisateur']); + // $gateAlumni = new \App\gateway\AlumniGateway($con); + // $dataAlumni = $gateAlumni->findById($data[0]['organisateur']); $gateImage = new \App\gateway\ImageGateway($con); $image = $gateImage->obtenirParId($data[0]['image']); - $organisateur = new \App\metier\Alumni( - $dataAlumni[0]['id'], - $dataAlumni[0]['mail'], - $dataAlumni[0]['mdp'], - $dataAlumni[0]['role'] - ); + // $organisateur = new \App\metier\Alumni( + // $dataAlumni[0]['id'], + // $dataAlumni[0]['mail'], + // $dataAlumni[0]['mdp'], + // $dataAlumni[0]['role'] + // ); $img = new \App\metier\Image( $image[0]['id'], @@ -91,7 +91,7 @@ class UtilisateurModele { $evenement[] = new \App\metier\Evenement( $row['id'], - $organisateur, + $row['organisateur'], $row['titre'], $row['description'], $row['date'],