196,17 → 196,26 |
|
private function analyserRessources() { |
if (count($this->ressources) == 1) { |
$message = "A implémenter : carte proportionnelle ensemble des infos"; |
$code = RestServeur::HTTP_CODE_RESSOURCE_INTROUVABLE; |
} else if (count($this->ressources) == 1) { |
$positionIds = 0; |
if ($this->etreRessourceIdentifiants($positionIds)) { |
$ids = $this->ressources[$positionIds]; |
$this->analyserIdentifiants($ids); |
// TODO : charger une nouvelle classe executant le sous service. |
} else if ($this->etreRessourceLegende(0)) { |
$message = "A implémenter : légende carte proportionnelle ensemble des infos"; |
$code = RestServeur::HTTP_CODE_RESSOURCE_INTROUVABLE; |
throw new Exception($message, $code); |
} else { |
throw new Exception("A implémenter : carte proportionnelle ensemble des infos"); |
$message = "La ressource n°1 '{$this->ressources[0]} indiquée n'est pas valable."; |
$code = RestServeur::HTTP_CODE_MAUVAISE_REQUETE; |
throw new Exception($message, $code); |
} |
} else if (count($this->ressources) == 2) { |
if ($this->etreIdentifiants(0)) { |
$ids = $this->ressources[$positionIds]; |
if ($this->etreRessourceIdentifiants(0)) { |
$ids = $this->ressources[0]; |
$this->analyserIdentifiants($ids); |
} |
if ($this->etreRessourceLegende(1)) { |