modification evenement listerEvenement

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

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

@ -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'],

Loading…
Cancel
Save