Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 1295 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1295 Rev 1296
Line 16... Line 16...
16
		$this->limitesCarte = $limitesCarte;
16
		$this->limitesCarte = $limitesCarte;
17
		foreach ($this->limitesCarte as $bord => $valeur) {
17
		foreach ($this->limitesCarte as $bord => $valeur) {
18
			$this->limitesCarte[$bord] = str_replace(",", ".", round($valeur, 6));
18
			$this->limitesCarte[$bord] = str_replace(",", ".", round($valeur, 6));
19
		}
19
		}
20
		$this->bdd = new Bdd();
20
		$this->bdd = new Bdd();
21
		$this->taxon = $taxon;
21
		$this->taxon = $taxon ?? [];
22
		$this->nomRang = $this->obtenirNomRang();
22
		$this->nomRang = $this->obtenirNomRang();
23
		if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') {
23
		if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') {
24
			$this->taxons = $this->recupererSynonymesEtSousEspeces();
24
			$this->taxons = $this->recupererSynonymesEtSousEspeces();
25
		} elseif ($this->nomRang == 'famille') {
25
		} elseif ($this->nomRang == 'famille') {
26
			$this->genres = $this->recupererGenres();
26
			$this->genres = $this->recupererGenres();