9,7 → 9,6 |
private $nomRang = ''; |
private $taxons = array(); |
private $genres = array(); |
private $utilisateurs = null; |
|
|
public function __construct($limitesCarte, $taxon) { |
25,7 → 24,6 |
} elseif ($this->nomRang == 'famille') { |
$this->genres = $this->recupererGenres(); |
} |
$this->utilisateurs = new Utilisateurs(); |
} |
|
private function obtenirNomRang() { |
60,24 → 58,9 |
"wgs84_longitude BETWEEN ".$this->limitesCarte['ouest']." AND ".$this->limitesCarte['est']." ". |
"AND wgs84_latitude BETWEEN ".$this->limitesCarte['sud']." AND ".$this->limitesCarte['nord']." ". |
"AND date_observation<>'0000-00-00 00-00-00' ORDER BY lat DESC, lng ASC, commune, date"; |
$stations = $this->bdd->recupererTous($requete); |
|
$this->extraireIdentitesAuteurs($stations); |
foreach($stations as &$station) { |
$station['auteur'] = $this->utilisateurs->getIntitule($station['auteur']); |
return $this->bdd->recupererTous($requete); |
} |
return $stations; |
} |
|
private function extraireIdentitesAuteurs($stations) { |
$courriels = array(); |
foreach ($stations as &$station) { |
$courriels[] = $station['auteur']; |
} |
$this->utilisateurs->setCourriels($courriels); |
$this->utilisateurs->chargerIdentites(); |
} |
|
private function construireWhereTaxonFloradata() { |
$criteres = array(); |
$nomRang = $this->obtenirNomRang($this->taxon); |