ajout de quelques fonction pour RDV

This commit is contained in:
SeekDaSky 2015-12-03 11:02:05 +01:00
parent c64bf617b9
commit e1a9530d5e
1 changed files with 6 additions and 4 deletions

View File

@ -22,11 +22,13 @@ class RDVRepo
}
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($idPatient){
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){