Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 605 → Rev 606

/trunk/services/modules/0.1/bdtfx/Noms.php
570,12 → 570,16
if (isset($masque)) {
$resultat = $this->trierRechercheFloue($this->parametres[$masque[0]], $resultat, $masque[1]);
}
if (isset($this->masque)) {
$this->table_retour['masque'] = implode('&', $this->masque);
}
$this->afficherEnteteResultat('/'.$this->service); //communNomTaxons
$table_retour_json['entete'] = $this->table_retour;
//on remplit la table $table_retour_json['resultat']
$table_retour_json['entete'] = $this->remplirJsonEntete();
$table_retour_json['resultat'] = $this->remplirJsonResultat($resultat);
return $table_retour_json;
}
 
public function remplirJsonResultat($resultat) {
$champs = null;
if (array_key_exists('retour.champs', $this->parametres)) {
$champs = explode(',', $this->parametres['retour.champs']);
595,8 → 599,16
}
$resultat_json[$num] = $retour;
}
$table_retour_json['resultat'] = $resultat_json;
return $table_retour_json;
return $resultat_json;
}
public function remplirJsonEntete() {
$entete = array();
if (isset($this->masque)) {
$this->table_retour['masque'] = implode('&', $this->masque);
}
parent::afficherEnteteResultat('/'.$this->service);
return $this->table_retour;
}
}
?>