Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1556 → Rev 1563

/trunk/jrest/lib/Cel.php
710,6 → 710,25
}
return ($this->etreNull($valeurs)) ? null : $valeurs;
}
protected function obtenirSousTaxonsPourNt($referentiel, $nt) {
return $this->obtenirSousTaxons($referentiel, 'nt:'.$nt);
}
protected function obtenirSousTaxonsPourNn($referentiel, $nn) {
return $this->obtenirSousTaxons($referentiel, $nn);
}
private function obtenirSousTaxons($referentiel, $requete) {
$sous_taxons = array();
$url_service_taxon = str_replace('{referentiel}', $referentiel, $this->config['eflore']['url_service_taxon']);
$url = $url_service_taxon.'/'.$requete.'/relations/hierarchie';
$res = json_decode(file_get_contents($url),true);
if($res && !empty($res)) {
$sous_taxons = array_pop($res);
}
return $sous_taxons;
}
 
//+----------------------------------------------------------------------------------------------------------------+
// GESTION DES SQUELETTES PHP