modification evenement listerEvenement

evenements
Clément VERDOIRE 1 year ago
parent cf50341780
commit 02f75caa55

@ -41,7 +41,7 @@ class Evenement
/** /**
* @param int $id * @param int $id
* @param Alumni $organisateur * @param int $organisateur
* @param string $titre * @param string $titre
* @param string $description * @param string $description
* @param string $date * @param string $date

@ -66,18 +66,18 @@ class UtilisateurModele
$gate = new \App\gateway\EvenementGateway($con); $gate = new \App\gateway\EvenementGateway($con);
$data = $gate->getAllEvenement(); $data = $gate->getAllEvenement();
$gateAlumni = new \App\gateway\AlumniGateway($con); // $gateAlumni = new \App\gateway\AlumniGateway($con);
$dataAlumni = $gateAlumni->findById($data[0]['organisateur']); // $dataAlumni = $gateAlumni->findById($data[0]['organisateur']);
$gateImage = new \App\gateway\ImageGateway($con); $gateImage = new \App\gateway\ImageGateway($con);
$image = $gateImage->obtenirParId($data[0]['image']); $image = $gateImage->obtenirParId($data[0]['image']);
$organisateur = new \App\metier\Alumni( // $organisateur = new \App\metier\Alumni(
$dataAlumni[0]['id'], // $dataAlumni[0]['id'],
$dataAlumni[0]['mail'], // $dataAlumni[0]['mail'],
$dataAlumni[0]['mdp'], // $dataAlumni[0]['mdp'],
$dataAlumni[0]['role'] // $dataAlumni[0]['role']
); // );
$img = new \App\metier\Image( $img = new \App\metier\Image(
$image[0]['id'], $image[0]['id'],
@ -91,7 +91,7 @@ class UtilisateurModele
{ {
$evenement[] = new \App\metier\Evenement( $evenement[] = new \App\metier\Evenement(
$row['id'], $row['id'],
$organisateur, $row['organisateur'],
$row['titre'], $row['titre'],
$row['description'], $row['description'],
$row['date'], $row['date'],

Loading…
Cancel
Save