Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 815 Rev 824
Line 40... Line 40...
40
	//TO DO : rajouter baseveg  ici et dans le squelette pdf
40
	//TO DO : rajouter baseveg  ici et dans le squelette pdf
41
	public function obtenirDonneesExport() {
41
	public function obtenirDonneesExport() {
42
		$donnees = array();
42
		$donnees = array();
43
		$donnees['wikini'] = $this->getWikini();
43
		$donnees['wikini'] = $this->getWikini();
44
		$donnees['baseflor'] = $this->getBaseflorExport();
44
		$donnees['baseflor'] = $this->getBaseflorExport();
-
 
45
		$donnees['baseveg'] = $this->getBaseveg();
45
		return $donnees;
46
		return $donnees;
46
	}
47
	}
Line 47... Line 48...
47
	
48
	
48
	public function getBaseflorCatminat($depart, $limite) {
49
	public function getBaseflorCatminat($depart, $limite) {
Line 91... Line 92...
91
			$baseveg['aucune'] = 'Aucunes données';
92
			$baseveg['aucune'] = 'Aucunes données';
92
		}
93
		}
93
		return $baseveg;
94
		return $baseveg;
94
	}
95
	}
Line -... Line 96...
-
 
96
	
-
 
97
	private function getBasevegSyntaxonCourant() {
-
 
98
		$baseveg = array();
-
 
99
		$baseflor = $this->getBaseflorCatminat(0,500);
-
 
100
		if (isset($baseflor['catminat'])) {
-
 
101
			$this->syntaxons->setProjet('baseveg');
-
 
102
			$catminat = str_replace('/','-',$baseflor['catminat']);
-
 
103
			$this->syntaxons->setCatminat($catminat);
-
 
104
			$syntaxonsCourant = $this->syntaxons->getSyntaxonsCatminat();
-
 
105
			$baseveg['description'] = $syntaxonsCourant['resultat'];
-
 
106
			}
-
 
107
		return $baseveg;
-
 
108
	}
Line 95... Line 109...
95
	
109
	
96
	
110
	
97
	
111
	
Line 105... Line 119...
105
		return $wikini;
119
		return $wikini;
106
	}
120
	}
Line 107... Line 121...
107
	
121
	
108
	public function getBloc() {
122
	public function getBloc() {
109
		$donnees = array();
123
		$donnees = array();
110
		$donnees = $this->getBaseflor(false);
124
		$donnees['graph'] = $this->getBaseflor(false);
-
 
125
		$donnees['graph']['titre'] = 'Optimum écologique';
111
		$donnees['titre'] = 'Optimum écologique';
126
		$donnees['phytosocio'] = $this->getBasevegSyntaxonCourant();
112
		return $donnees;
127
		return $donnees;
Line 113... Line 128...
113
	}
128
	}
114
	
129