40 lines
637 B
PHP
40 lines
637 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: seekdasky
|
||
|
* Date: 02/12/15
|
||
|
* Time: 12:36
|
||
|
*/
|
||
|
class MedecinRepo
|
||
|
{
|
||
|
private $connexion;
|
||
|
|
||
|
public function __construct(){
|
||
|
$this->connexion = StaticRepo::getConnexion();
|
||
|
}
|
||
|
|
||
|
public function getById($id){
|
||
|
$req = $this->connexion->prepare('SELECT * FROM Medecin WHERE Id = :id');
|
||
|
$req->execute(['id' => $id]);
|
||
|
return $req->fetchAll();
|
||
|
|
||
|
}
|
||
|
|
||
|
public function add($civilite,$prenom,$nom){
|
||
|
|
||
|
}
|
||
|
|
||
|
public function delete($idPatient){
|
||
|
|
||
|
}
|
||
|
|
||
|
public function search($nom,$prenom){
|
||
|
|
||
|
}
|
||
|
|
||
|
public function getPatients($idMedecin){
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|