ajout de quelques fonction pour RDV
This commit is contained in:
parent
c64bf617b9
commit
e1a9530d5e
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue