Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 79 → Rev 78

/trunk/bibliotheque/dao/TaxonDao.php
24,10 → 24,9
$url = $this->url_jrest.self::SERVICE."/Taxon/$ref/$id";
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json, true);
return $donnees[0];
return $donnees['taxons'];
}
// Nomanclature
public function getNomenclature($ref, $id) {
$url = $this->url_jrest.self::SERVICE."/Nomenclature/$ref/$id";
$json = $this->envoyerRequeteConsultation($url);
34,7 → 33,6
$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);
42,13 → 40,5
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];
}
 
}
?>