connexion = StaticRepo::getConnexion(); } public function getById($id){ $req = $this->connexion->prepare('SELECT * FROM RDV WHERE Id = :id'); $req->execute(['id' => $id]); return $req->fetchAll(); } public function getByDate($date){ $date = date('o-m-d',$date); $req = $this->connexion->prepare('SELECT * FROM RDV WHERE DATE(FROM_UNIXTIME(1449136444)) = :date'); } public function delete($idRDV){ $req = $this->connexion->prepare('DELETE FROM RDV WHERE Id = :id'); return $req->execute(['id' => $idRDV]); } public function add($timestamp,$duree,$idPatient,$idMedecin){ } public function updateDateTime($idRDV,$dateTime){ } public function getByPatientAndDate($idPatient,$date){ } }