Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 752 | Rev 770 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 752 Rev 763
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'));
Line 103... Line 109...
103
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
109
				$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
104
			$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420";
110
				$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420";
105
			$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420";
111
				$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";
112
				$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";
113
				$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png";
-
 
114
				$this->mettreEnCache('baseflor_graphique_'.$num_nom, $baseflor);
108
		}else {
115
			}else {
109
			$baseflor['aucune'] = 'Aucunes données';
116
				$baseflor['aucune'] = 'Aucunes données';
110
		}
117
			}
-
 
118
		}
111
		return $baseflor;
119
		return $baseflor;
112
	}
120
	}
113
}
121
}
114
?>
122
?>
115
123