| Line 36... |
Line 36... |
| 36 |
public function obtenirDonnees() {
|
36 |
public function obtenirDonnees() {
|
| 37 |
$this->getRepartition();
|
37 |
$this->getRepartition();
|
| 38 |
$this->getMoissonnage();
|
38 |
$this->getMoissonnage();
|
| 39 |
$this->donnees['widget']['nt'] = $this->nomCourant->getNt();
|
39 |
$this->donnees['widget']['nt'] = $this->nomCourant->getNt();
|
| 40 |
$this->donnees['widget']['nn'] = $this->nomCourant->getNnr();
|
40 |
$this->donnees['widget']['nn'] = $this->nomCourant->getNnr();
|
| - |
|
41 |
$this->donnees['widget']['referentiel'] = $this->referentiel;
|
| 41 |
return $this->donnees;
|
42 |
return $this->donnees;
|
| 42 |
}
|
43 |
}
|
| Line 43... |
Line 44... |
| 43 |
|
44 |
|
| 44 |
public function obtenirDonneesExport() {
|
45 |
public function obtenirDonneesExport() {
|
| Line 50... |
Line 51... |
| 50 |
private function getRepartition() {
|
51 |
private function getRepartition() {
|
| 51 |
$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
|
52 |
$projetRepartition = Config::get($this->referentiel.'.baseRepartition');
|
| 52 |
if ($projetRepartition != "") {
|
53 |
if ($projetRepartition != "") {
|
| 53 |
$this->cartes->setProjet($projetRepartition);
|
54 |
$this->cartes->setProjet($projetRepartition);
|
| 54 |
$this->cartes->setLargeur('630');
|
55 |
$this->cartes->setLargeur('630');
|
| - |
|
56 |
|
| - |
|
57 |
//TODO: démochir ce code
|
| - |
|
58 |
// Chargement des nn des synonymes pour obtenir une carte plus complète
|
| - |
|
59 |
$noms = $this->conteneur->getApiNoms();
|
| - |
|
60 |
$syns = $noms->getSynonymes($this->nomCourant->getNnr());
|
| - |
|
61 |
$nns_syns = array_keys($syns['resultat']);
|
| 55 |
$id = 'nn:'.$this->nomCourant->getNnr();
|
62 |
$nns_syns[] = $this->nomCourant->getNnr();
|
| - |
|
63 |
$id = 'nn:'.implode(',', $nns_syns);
|
| - |
|
64 |
|
| 56 |
$this->cartes->setId($id);
|
65 |
$this->cartes->setId($id);
|
| 57 |
$repartition['svgUrl'] = $this->cartes->getUrlDataSvg();
|
66 |
$repartition['svgUrl'] = $this->cartes->getUrlDataSvg();
|
| 58 |
$repartition['pngUrl'] = $this->cartes->getUrlPng();
|
67 |
$repartition['pngUrl'] = $this->cartes->getUrlPng();
|
| 59 |
$repartition['legende'] = $this->cartes->getLegendeId();
|
68 |
$repartition['legende'] = $this->cartes->getLegendeId();
|
| 60 |
$this->meta->setProjet($projetRepartition);
|
69 |
$this->meta->setProjet($projetRepartition);
|
| Line 94... |
Line 103... |
| 94 |
}
|
103 |
}
|
| Line 95... |
Line 104... |
| 95 |
|
104 |
|
| 96 |
private function getChorodepMiniature() {
|
105 |
private function getChorodepMiniature() {
|
| 97 |
$this->cartes->setProjet('chorodep');
|
106 |
$this->cartes->setProjet('chorodep');
|
| - |
|
107 |
$this->cartes->setLargeur('190x178');
|
| - |
|
108 |
//TODO: démochir ce code
|
| - |
|
109 |
// Chargement des nn des synonymes pour obtenir une carte plus complète
|
| - |
|
110 |
$noms = $this->conteneur->getApiNoms();
|
| - |
|
111 |
$syns = $noms->getSynonymes($this->nomCourant->getNnr());
|
| 98 |
$this->cartes->setLargeur('190x178');
|
112 |
$nns_syns = array_keys($syns['resultat']);
|
| - |
|
113 |
$nns_syns[] = $this->nomCourant->getNnr();
|
| 99 |
$id = 'nn:'.$this->nomCourant->getNnr();
|
114 |
$id = 'nn:'.implode(',', $nns_syns);
|
| 100 |
$this->cartes->setId($id);
|
115 |
$this->cartes->setId($id);
|
| 101 |
return $this->cartes->getUrlPng();
|
116 |
return $this->cartes->getUrlPng();
|
| Line 102... |
Line 117... |
| 102 |
}
|
117 |
}
|