Line 24... |
Line 24... |
24 |
$this->surligneur = (is_null($surligneur)) ? new Surligneur() : $surligneur;
|
24 |
$this->surligneur = (is_null($surligneur)) ? new Surligneur() : $surligneur;
|
25 |
$this->trieur = (is_null($trieur)) ? new Trieur() : $trieur;
|
25 |
$this->trieur = (is_null($trieur)) ? new Trieur() : $trieur;
|
26 |
$this->urls = (is_null($urls)) ? new AppUrls() : $urls;
|
26 |
$this->urls = (is_null($urls)) ? new AppUrls() : $urls;
|
27 |
$this->manipulateurDeChaine = is_null($manipulateurDeChaine) ? new ChaineManipulateur() : $manipulateurDeChaine;
|
27 |
$this->manipulateurDeChaine = is_null($manipulateurDeChaine) ? new ChaineManipulateur() : $manipulateurDeChaine;
|
28 |
$this->imagesService = is_null($imagesService) ? new Images($this->parametres->projetImg) : $imagesService;
|
28 |
$this->imagesService = is_null($imagesService) ? new Images($this->parametres->projetImg) : $imagesService;
|
- |
|
29 |
$this->chargerRepartition();
|
- |
|
30 |
}
|
- |
|
31 |
|
- |
|
32 |
private function chargerRepartition($nn) {
|
- |
|
33 |
$serviceRepartition = new Cartes('chorodep', $nn, 'nn', "108x101");
|
- |
|
34 |
$urlPng = $serviceRepartition->getUrlPng();
|
- |
|
35 |
return $urlPng;
|
29 |
}
|
36 |
}
|
Line 30... |
Line 37... |
30 |
|
37 |
|
31 |
public function getTplInfos() {
|
38 |
public function getTplInfos() {
|
32 |
return $this->infosPourTpl;
|
39 |
return $this->infosPourTpl;
|
Line 81... |
Line 88... |
81 |
$nn = $this->supprimerCodeReftaxDesNns($nom['nom_retenu.code']);
|
88 |
$nn = $this->supprimerCodeReftaxDesNns($nom['nom_retenu.code']);
|
82 |
if (array_key_exists($nn, $taxons) == false) {
|
89 |
if (array_key_exists($nn, $taxons) == false) {
|
83 |
$taxon = array();
|
90 |
$taxon = array();
|
84 |
$taxon['nomSci'] = $nom['taxon'];
|
91 |
$taxon['nomSci'] = $nom['taxon'];
|
85 |
$taxon['urlFiche'] = $this->urls->obtenirUrlFiche($nn, $this->parametres->typeNom, $this->parametres->masqueRecherche, $nom['taxon']);
|
92 |
$taxon['urlFiche'] = $this->urls->obtenirUrlFiche($nn, $this->parametres->typeNom, $this->parametres->masqueRecherche, $nom['taxon']);
|
- |
|
93 |
$taxon['repartition_vignette'] = $this->chargerRepartition($nn);
|
86 |
$taxons[$nn] = $taxon;
|
94 |
$taxons[$nn] = $taxon;
|
87 |
}
|
95 |
}
|
88 |
$nom_verna = array();
|
96 |
$nom_verna = array();
|
89 |
$nom_verna['nn'] = $nom['id'];
|
97 |
$nom_verna['nn'] = $nom['id'];
|
90 |
$nom_verna['nom_vernaculaire'] = $nom['nom_vernaculaire'];
|
98 |
$nom_verna['nom_vernaculaire'] = $nom['nom_vernaculaire'];
|