Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 957 | Rev 987 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 957 Rev 962
Line 156... Line 156...
156
	}
156
	}
Line 157... Line 157...
157
	
157
	
158
	private function getBaseflor($inclure_legende = true) {
158
	private function getBaseflor($inclure_legende = true) {
159
		if (Config::get($this->referentiel.'.baseEcologie') != "") {
159
		if (Config::get($this->referentiel.'.baseEcologie') != "") {
-
 
160
			$num_nom = $this->nomCourant->getNns();
160
			$num_nom = $this->nomCourant->getNns();
161
			$referentiel = $this->conteneur->getParametre('referentiel');
161
			$cache = $this->obtenirCache('baseflor_graphique_'.$num_nom);
162
			$cache = $this->obtenirCache('baseflor/graphique/'.$referentiel.'_'.$num_nom);
162
			if($cache != null) {
163
			if($cache != null) {
163
				$baseflor = $cache;
164
				$baseflor = $cache;
164
				$this->graphique ->setProjet('baseflor');
165
				$this->graphique ->setProjet('baseflor');
165
				$graphique = $this->graphique->getLegendeGraphique();
166
				$graphique = $this->graphique->getLegendeGraphique();
Line 194... Line 195...
194
					$meta = $this->meta->getMetaDonnees();
195
					$meta = $this->meta->getMetaDonnees();
195
					$citation = $meta[0]['citation'];
196
					$citation = $meta[0]['citation'];
196
					$baseflor['meta']['citation'] = $citation;
197
					$baseflor['meta']['citation'] = $citation;
197
					$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
198
					$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
Line 198... Line 199...
198
					
199
					
199
					$this->mettreEnCache('baseflor_graphique_'.$num_nom, $baseflor);
200
					$this->mettreEnCache('baseflor/graphique/'.$referentiel.'_'.$num_nom, $baseflor);
200
				} else {
201
				} else {
201
					$baseflor['aucune'] = 'Aucunes données';
202
					$baseflor['aucune'] = 'Aucunes données';
202
				}
203
				}
203
			}
204
			}