Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 697 Rev 752
Line 50... Line 50...
50
		return $wikini;
50
		return $wikini;
51
	}
51
	}
Line 52... Line 52...
52
	
52
	
53
	public function getBloc() {
53
	public function getBloc() {
54
		$donnees = array();
54
		$donnees = array();
55
		$donnees = $this->getBaseflor();
55
		$donnees = $this->getBaseflor(false);
56
		$donnees['titre'] = 'Optimum écologique';
56
		$donnees['titre'] = 'Optimum écologique';
57
		return $donnees;
57
		return $donnees;
Line 58... Line 58...
58
	}
58
	}
Line 78... Line 78...
78
			$baseflor['aucune'] = 'Aucunes données';
78
			$baseflor['aucune'] = 'Aucunes données';
79
		}
79
		}
80
		return $baseflor;
80
		return $baseflor;
81
	}
81
	}
Line 82... Line 82...
82
	
82
	
83
	private function getBaseflor() {
83
	private function getBaseflor($inclure_legende = true) {
84
		$baseflor = array();
84
		$baseflor = array();
85
		$this->informations ->setProjet('baseflor');
85
		$this->informations ->setProjet('baseflor');
86
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
86
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
87
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
87
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
Line 90... Line 90...
90
			$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
90
			$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
91
			$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
91
			$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
92
			$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
92
			$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
93
			$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
93
			$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
94
			$this->graphique -> setProjet('baseflor');
94
			$this->graphique -> setProjet('baseflor');
-
 
95
			if($inclure_legende) {
95
			$graphique = $this->graphique->getLegendeGraphique();
96
				$graphique = $this->graphique->getLegendeGraphique();
96
			$baseflor['legende'] =  $graphique ;
97
				$baseflor['legende'] =  $graphique ;
-
 
98
			}
97
			$this->meta->setProjet('baseflor');
99
			$this->meta->setProjet('baseflor');
98
			$meta = $this->meta->getMetaDonnees();
100
			$meta = $this->meta->getMetaDonnees();
99
			$citation = $meta[0]['citation'];
101
			$citation = $meta[0]['citation'];
100
			$baseflor['meta']['citation'] = $citation;
102
			$baseflor['meta']['citation'] = $citation;
101
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
103
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');