44 lines
718 B
PHP
44 lines
718 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: seekdasky
|
|
* Date: 02/12/15
|
|
* Time: 12:36
|
|
*/
|
|
class RDVRepo
|
|
{
|
|
private $connexion;
|
|
|
|
public function __construct(){
|
|
$this->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){
|
|
|
|
}
|
|
|
|
public function delete($idPatient){
|
|
|
|
}
|
|
|
|
public function add($timestamp,$duree,$idPatient,$idMedecin){
|
|
|
|
}
|
|
|
|
public function updateDateTime($idRDV,$dateTime){
|
|
|
|
}
|
|
|
|
public function getByPatientAndDate($idPatient,$date){
|
|
|
|
}
|
|
|
|
} |