Line 131... |
Line 131... |
131 |
private function getBaseflor($inclure_legende = true) {
|
131 |
private function getBaseflor($inclure_legende = true) {
|
132 |
$num_nom = $this->nomCourant->getNns();
|
132 |
$num_nom = $this->nomCourant->getNns();
|
133 |
$cache = $this->obtenirCache('baseflor_graphique_'.$num_nom);
|
133 |
$cache = $this->obtenirCache('baseflor_graphique_'.$num_nom);
|
134 |
if($cache != null) {
|
134 |
if($cache != null) {
|
135 |
$baseflor = $cache;
|
135 |
$baseflor = $cache;
|
- |
|
136 |
$this->graphique ->setProjet('baseflor');
|
- |
|
137 |
$graphique = $this->graphique->getLegendeGraphique();
|
- |
|
138 |
$baseflor['legende'] = $graphique ;
|
136 |
} else {
|
139 |
} else {
|
137 |
$baseflor = array();
|
140 |
$baseflor = array();
|
138 |
$this->informations ->setProjet('baseflor');
|
141 |
$this->informations ->setProjet('baseflor');
|
139 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
142 |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
|
140 |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
|
143 |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
|
Line 142... |
Line 145... |
142 |
if($informations != ""){
|
145 |
if($informations != ""){
|
143 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
146 |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
|
144 |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
|
147 |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
|
145 |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
|
148 |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
|
146 |
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
|
149 |
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
|
147 |
$this->graphique -> setProjet('baseflor');
|
- |
|
148 |
if($inclure_legende) {
|
150 |
if($inclure_legende) {
|
- |
|
151 |
$this->graphique ->setProjet('baseflor');
|
149 |
$graphique = $this->graphique->getLegendeGraphique();
|
152 |
$graphique = $this->graphique->getLegendeGraphique();
|
150 |
$baseflor['legende'] = $graphique ;
|
153 |
$baseflor['legende'] = $graphique ;
|
151 |
}
|
154 |
}
|
152 |
$this->meta->setProjet('baseflor');
|
155 |
$this->meta->setProjet('baseflor');
|
153 |
$meta = $this->meta->getMetaDonnees();
|
156 |
$meta = $this->meta->getMetaDonnees();
|