Line 22... |
Line 22... |
22 |
$this->meta = $this->conteneur->getApiMetaDonnees();
|
22 |
$this->meta = $this->conteneur->getApiMetaDonnees();
|
23 |
$this->wikini = $this->conteneur->getApiWikini();
|
23 |
$this->wikini = $this->conteneur->getApiWikini();
|
24 |
$this->appUrls = $this->conteneur->getAppUrls();
|
24 |
$this->appUrls = $this->conteneur->getAppUrls();
|
25 |
$this->graphique = $this->conteneur->getApiGraphiques();
|
25 |
$this->graphique = $this->conteneur->getApiGraphiques();
|
Line -... |
Line 26... |
- |
|
26 |
|
26 |
|
27 |
parent::__construct();
|
Line 27... |
Line 28... |
27 |
}
|
28 |
}
|
28 |
|
29 |
|
29 |
public function obtenirDonnees() {
|
30 |
public function obtenirDonnees() {
|
Line 79... |
Line 80... |
79 |
}
|
80 |
}
|
80 |
return $baseflor;
|
81 |
return $baseflor;
|
81 |
}
|
82 |
}
|
Line 82... |
Line 83... |
82 |
|
83 |
|
- |
|
84 |
private function getBaseflor($inclure_legende = true) {
|
- |
|
85 |
$num_nom = $this->nomCourant->getNns();
|
- |
|
86 |
$cache = $this->obtenirCache('baseflor_graphique_'.$num_nom);
|
- |
|
87 |
if($cache != null) {
|
- |
|
88 |
$baseflor = $cache;
|
83 |
private function getBaseflor($inclure_legende = true) {
|
89 |
} else {
|
84 |
$baseflor = array();
|
90 |
$baseflor = array();
|
85 |
$this->informations ->setProjet('baseflor');
|
91 |
$this->informations ->setProjet('baseflor');
|
86 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
92 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
87 |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
|
93 |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
|
88 |
$informations = $this->informations->getInformationsEcologie();
|
94 |
$informations = $this->informations->getInformationsEcologie();
|
89 |
if($informations != ""){
|
95 |
if($informations != ""){
|
90 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
96 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
91 |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
|
97 |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
|
92 |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
|
98 |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
|
93 |
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
|
99 |
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
|
94 |
$this->graphique -> setProjet('baseflor');
|
100 |
$this->graphique -> setProjet('baseflor');
|
95 |
if($inclure_legende) {
|
101 |
if($inclure_legende) {
|
96 |
$graphique = $this->graphique->getLegendeGraphique();
|
102 |
$graphique = $this->graphique->getLegendeGraphique();
|
- |
|
103 |
$baseflor['legende'] = $graphique ;
|
- |
|
104 |
}
|
- |
|
105 |
$this->meta->setProjet('baseflor');
|
- |
|
106 |
$meta = $this->meta->getMetaDonnees();
|
- |
|
107 |
$citation = $meta[0]['citation'];
|
- |
|
108 |
$baseflor['meta']['citation'] = $citation;
|
- |
|
109 |
$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
|
- |
|
110 |
$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420";
|
- |
|
111 |
$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420";
|
- |
|
112 |
$baseflor['description']['climat_url_png'] = $informations['graphique_climat']['href']."?retour.format=420&retour=image/png";
|
- |
|
113 |
$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png";
|
- |
|
114 |
$this->mettreEnCache('baseflor_graphique_'.$num_nom, $baseflor);
|
- |
|
115 |
}else {
|
97 |
$baseflor['legende'] = $graphique ;
|
116 |
$baseflor['aucune'] = 'Aucunes données';
|
98 |
}
|
- |
|
99 |
$this->meta->setProjet('baseflor');
|
- |
|
100 |
$meta = $this->meta->getMetaDonnees();
|
- |
|
101 |
$citation = $meta[0]['citation'];
|
- |
|
102 |
$baseflor['meta']['citation'] = $citation;
|
- |
|
103 |
$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
|
- |
|
104 |
$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420";
|
- |
|
105 |
$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420";
|
- |
|
106 |
$baseflor['description']['climat_url_png'] = $informations['graphique_climat']['href']."?retour.format=420&retour=image/png";
|
- |
|
107 |
$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png";
|
- |
|
108 |
}else {
|
- |
|
109 |
$baseflor['aucune'] = 'Aucunes données';
|
117 |
}
|
110 |
}
|
118 |
}
|
111 |
return $baseflor;
|
119 |
return $baseflor;
|
112 |
}
|
120 |
}
|
113 |
}
|
121 |
}
|
114 |
?>
|
122 |
?>
|