24,9 → 24,10 |
$url = $this->url_jrest.self::SERVICE."/Taxon/$ref/$id"; |
$json = $this->envoyerRequeteConsultation($url); |
$donnees = json_decode($json, true); |
return $donnees['taxons']; |
return $donnees[0]; |
} |
|
// Nomanclature |
public function getNomenclature($ref, $id) { |
$url = $this->url_jrest.self::SERVICE."/Nomenclature/$ref/$id"; |
$json = $this->envoyerRequeteConsultation($url); |
33,6 → 34,7 |
$resultats = json_decode($json, true); |
return $resultats[0]; |
} |
|
public function getParentsHybride($ref, $id) { |
$url = $this->url_jrest.self::SERVICE."/ParentsHybride/$ref/$id"; |
$json = $this->envoyerRequeteConsultation($url); |
40,5 → 42,13 |
return $parents[0]; |
} |
|
//Synonymie |
public function getTaxonAffichage($ref, $id) { |
$url = $this->url_jrest.self::SERVICE."/TaxonAffichage/$ref/$id"; |
$json = $this->envoyerRequeteConsultation($url); |
$donnees = json_decode($json, true); |
return $donnees[0]; |
} |
|
} |
?> |