160,21 → 160,21 |
$widget['squelette'] = $this->projet.'_taxons'; |
$widget['squelette_ext'] = '.tpl.js'; |
$widget['donnees'] = array(); |
$nomsAAfficher = $this->recupererListeNomsSci(); |
$widget['donnees']['taxons'] = json_encode($nomsAAfficher); |
return $widget; |
$nomsAAfficher = $this->recupererListeNomsSci(); |
$taxons_tries = array(); |
foreach ($taxons as $taxon) { |
$taxons_tries[$taxon['num_nom_sel']] = $taxon; |
} |
$widget['donnees']['taxons'] = json_encode($taxons_tries); |
return $widget; |
} |
|
private function recupererListeNomsSci() { |
$taxons = $this->recupererListeTaxon(); |
$nomsAAfficher = array(); |
if (is_array($taxons)) { |
$taxons = self::trierTableauMd($taxons, array('nom_fr' => SORT_ASC)); |
foreach ($taxons as $taxon) { |
$nomsAAfficher[$taxon['num_nom_sel']] = $taxon; |
} |
} |
return $nomsAAfficher; |
return $taxons; |
} |
|
private function recupererListeNoms() { |
214,7 → 214,6 |
} |
$nomsAAfficher = self::trierTableauMd($nomsAAfficher, array('nom_a_afficher' => SORT_ASC)); |
$nomsSpeciaux = self::trierTableauMd($nomsSpeciaux, array('nom_a_afficher' => SORT_ASC)); |
$nomsAAfficher = array_merge($nomsAAfficher, $nomsSpeciaux); |
} |
return array('speciaux' => $nomsSpeciaux, 'sci-et-fr' => $nomsAAfficher); |
} |