70,6 → 70,22 |
return $corps; |
} |
|
public function supprimer($ressources) { |
$this->methode = 'supprimer'; |
$resultat = ''; |
$reponseHttp = new ReponseHttp(); |
try { |
$this->ressources = $ressources; |
$this->conteneur = new Conteneur(); |
$resultat = $this->traiterRessources(); |
$reponseHttp->setResultatService($resultat); |
} catch (Exception $e) { |
$reponseHttp->ajouterErreur($e); |
$reponseHttp->emettreLesEntetes(); |
echo $reponseHttp->getCorps(); |
} |
} |
|
public function modifier($ressources, $requeteDonnees) { |
|
} |
173,6 → 189,8 |
$retour = $service->ajouter($this->ressources, $this->parametres); |
} elseif ($this->methode == 'modifier') { |
$retour = $service->modifier($this->ressources, $this->parametres); |
} elseif ($this->methode == 'supprimer') { |
$retour = $service->supprimer($this->ressources, $this->parametres); |
} |
} |
} |