| Line 34... |
Line 34... |
| 34 |
}
|
34 |
}
|
| Line 35... |
Line 35... |
| 35 |
|
35 |
|
| 36 |
public function obtenirDonnees() {
|
36 |
public function obtenirDonnees() {
|
| 37 |
$this->getRepartition();
|
37 |
$this->getRepartition();
|
| - |
|
38 |
$this->getMoissonnage();
|
| 38 |
$this->getMoissonnage();
|
39 |
$this->getFloreProbable();
|
| 39 |
$this->donnees['widget']['nt'] = $this->nomCourant->getNt();
|
40 |
$this->donnees['widget']['nt'] = $this->nomCourant->getNt();
|
| 40 |
$this->donnees['widget']['nn'] = $this->nomCourant->getNnr();
|
41 |
$this->donnees['widget']['nn'] = $this->nomCourant->getNnr();
|
| 41 |
$this->donnees['widget']['referentiel'] = $this->referentiel;
|
42 |
$this->donnees['widget']['referentiel'] = $this->referentiel;
|
| 42 |
return $this->donnees;
|
43 |
return $this->donnees;
|
| Line 102... |
Line 103... |
| 102 |
$this->cartes->setInfoNom($this->nomCourant->getNomRetenu());
|
103 |
$this->cartes->setInfoNom($this->nomCourant->getNomRetenu());
|
| 103 |
$eflore['min'] = $this->cartes->getUrlEflorePng();
|
104 |
$eflore['min'] = $this->cartes->getUrlEflorePng();
|
| 104 |
$eflore['legende'] = $this->cartes->getLegende();
|
105 |
$eflore['legende'] = $this->cartes->getLegende();
|
| 105 |
$this->donnees['moissonnage'] = $eflore;
|
106 |
$this->donnees['moissonnage'] = $eflore;
|
| 106 |
}
|
107 |
}
|
| - |
|
108 |
|
| - |
|
109 |
private function getFloreProbable() {
|
| - |
|
110 |
$projetFloreProbable = "sophy";//Config::get($this->referentiel.'.floreProbable');
|
| - |
|
111 |
if (! $projetFloreProbable) return;
|
| - |
|
112 |
$this->cartes->setProjet($projetFloreProbable);
|
| - |
|
113 |
|
| - |
|
114 |
$this->meta->setProjet($projetFloreProbable);
|
| - |
|
115 |
$this->cartes->setId($this->referentiel.'.nt:'.$this->nomCourant->getNt());
|
| - |
|
116 |
// TODO: url téléchargement de la carte lorsqu'on sera sur que c'est possible
|
| - |
|
117 |
// dans ['carte']['telechargement'] par exemple
|
| - |
|
118 |
$this->donnees['flore_probable'] = array('carte' => array(), 'meta' => array());
|
| - |
|
119 |
$this->donnees['flore_probable']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees($projetFloreProbable);
|
| - |
|
120 |
$this->donnees['flore_probable']['carte']['url'] = $this->cartes->getUrlFloreProbablePng();
|
| - |
|
121 |
}
|
| Line 107... |
Line 122... |
| 107 |
|
122 |
|
| 108 |
public function getBloc() {
|
123 |
public function getBloc() {
|
| 109 |
$donnees['chorodep'] = $this->getChorodepMiniature();
|
124 |
$donnees['chorodep'] = $this->getChorodepMiniature();
|