Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 558 Rev 568
Line 12... Line 12...
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
13
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
14
 * @version		$Id$
14
 * @version		$Id$
15
 */
15
 */
16
class Ecologie extends aControleur {
16
class Ecologie extends aControleur {
-
 
17
	
17
	public function __construct(Conteneur $conteneur) {
18
	public function __construct(Conteneur $conteneur) {
18
		$this->conteneur = $conteneur;
19
		$this->conteneur = $conteneur;
19
		$this->nomCourant = $this->conteneur->getNomCourant();
20
		$this->nomCourant = $this->conteneur->getNomCourant();
20
		$this->informations = $this->conteneur->getApiInformations();
21
		$this->informations = $this->conteneur->getApiInformations();
21
		$this->meta = $this->conteneur->getApiMetaDonnees();
22
		$this->meta = $this->conteneur->getApiMetaDonnees();
22
		$this->wikini = $this->conteneur->getApiWikini();
23
		$this->wikini = $this->conteneur->getApiWikini();
23
		$this->appUrls = $this->conteneur->getAppUrls();
24
		$this->appUrls = $this->conteneur->getAppUrls();
-
 
25
		$this->graphique = $this->conteneur->getApiGraphiques();
-
 
26
		
24
	}
27
	}
Line 25... Line 28...
25
	
28
	
26
	public function obtenirDonnees() {
29
	public function obtenirDonnees() {
27
		$donnees = array();
30
		$donnees = array();
Line 55... Line 58...
55
		if($informations != ""){
58
		if($informations != ""){
56
			$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
59
			$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
57
			$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
60
			$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
58
			$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
61
			$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
59
			$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
62
			$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
-
 
63
			$this->graphique -> setProjet('baseflor');
-
 
64
			$graphique = $this->graphique->getLegendeGraphique();
-
 
65
			$baseflor['legende'] =  $graphique ;
60
			$this->meta->setProjet('baseflor');
66
			$this->meta->setProjet('baseflor');
61
			$meta = $this->meta->getMetaDonnees();
67
			$meta = $this->meta->getMetaDonnees();
62
			$citation = $meta[0]['citation'];
68
			$citation = $meta[0]['citation'];
63
			$baseflor['meta']['citation'] = $citation;
69
			$baseflor['meta']['citation'] = $citation;
64
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
70
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');