Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 607 Rev 697
Line 31... Line 31...
31
		$donnees['wikini'] = $this->getWikini();
31
		$donnees['wikini'] = $this->getWikini();
32
		$donnees['baseflor'] = $this->getBaseflor();
32
		$donnees['baseflor'] = $this->getBaseflor();
33
		return $donnees;
33
		return $donnees;
34
	}
34
	}
Line -... Line 35...
-
 
35
	
-
 
36
	public function obtenirDonneesEXport() {
-
 
37
		$donnees = array();
-
 
38
		$donnees['wikini'] = $this->getWikini();
-
 
39
		$donnees['baseflor'] = $this->getBaseflorExport();
-
 
40
		return $donnees;
-
 
41
	}
35
	
42
	
36
	private function getWikini() {
43
	private function getWikini() {
37
		$wikini = array();
44
		$wikini = array();
38
		$wikini['titre'] = 'Wikini';
45
		$wikini['titre'] = 'Wikini';
39
		$referentiel = $this->conteneur->getParametre('referentiel');
46
		$referentiel = $this->conteneur->getParametre('referentiel');
Line 48... Line 55...
48
		$donnees = $this->getBaseflor();
55
		$donnees = $this->getBaseflor();
49
		$donnees['titre'] = 'Optimum écologique';
56
		$donnees['titre'] = 'Optimum écologique';
50
		return $donnees;
57
		return $donnees;
51
	}
58
	}
Line -... Line 59...
-
 
59
	
-
 
60
	private function getBaseflorExport() {
-
 
61
		$baseflor = array();
-
 
62
		$this->informations ->setProjet('baseflor');
-
 
63
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
-
 
64
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
-
 
65
		$informations = $this->informations->getInformationsEcologie();
-
 
66
		if($informations != ""){
-
 
67
			$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
-
 
68
			$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
-
 
69
			$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
-
 
70
			$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
-
 
71
			$this->graphique -> setProjet('baseflor');
-
 
72
			$baseflor['legende_eco'] = Config::get('chemin_images').'legende_formes.png';
-
 
73
			$this->meta->setProjet('baseflor');
-
 
74
			$meta = $this->meta->getMetaDonnees();
-
 
75
			$citation = $meta[0]['citation'];
-
 
76
			$baseflor['meta']['citation'] = $citation;
-
 
77
		}else {
-
 
78
			$baseflor['aucune'] = 'Aucunes données';
-
 
79
		}
-
 
80
		return $baseflor;
-
 
81
	}
52
	
82
	
53
	private function getBaseflor() {
83
	private function getBaseflor() {
54
		$baseflor = array();
84
		$baseflor = array();
55
		$this->informations ->setProjet('baseflor');
85
		$this->informations ->setProjet('baseflor');
56
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
86
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));