Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 1882 → Rev 1883

/trunk/services/modules/0.1/nomstaxons/ListeTaxons.php
45,7 → 45,6
if ($referentiel != 'tous') {
$requete = urlencode($this->navigation->getFiltre('masque.nom'));
$url = sprintf($this->conteneur->getParametre('nomstaxons.url_autocompletion_tpl'), $referentiel, $requete);
 
$restClient = $this->conteneur->getRestClient();
$resultatJson = $restClient->consulter($url);
$this->resultatsBruts =(array) json_decode($resultatJson, true);
54,8 → 53,12
 
private function formaterResultats() {
if (isset($this->resultatsBruts['resultat'])) {
foreach ($this->resultatsBruts['resultat'] as $nn => $info) {
$this->resultats[] = array($info['nom_sci_complet'], (string)$nn);
foreach ($this->resultatsBruts['resultat'] as $info) {
$this->resultats[] = array(
"nn" => $info['num_nom'],
"ns" => $info['nom_sci_complet'],
"retenu" => ($info['retenu'] === "true" ? true : false)
);
}
}
}