Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 321 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 321 Rev 380
Line 3... Line 3...
3
	private $infos = array();
3
	private $infos = array();
Line 4... Line 4...
4
 
4
 
5
	public function __construct(Array $infos) {
5
	public function __construct(Array $infos) {
6
		$this->infos = $infos;
6
		$this->infos = $infos;
-
 
7
	}
-
 
8
	public function setTaxonsSuperieurs(Array $taxonsSup, $nns) {
-
 
9
		$this->infos['taxonsSup'] = $taxonsSup[$nns];
Line 7... Line 10...
7
	}
10
	}
8
	
11
	
9
	public function getInfos() {
12
	public function getInfos() {
Line 15... Line 18...
15
		if (array_key_exists($cle, $this->infos)) {
18
		if (array_key_exists($cle, $this->infos)) {
16
			$valeur = $this->infos[$cle];
19
			$valeur = $this->infos[$cle];
17
		}
20
		}
18
		return $valeur;
21
		return $valeur;
19
	}
22
	}
-
 
23
	
-
 
24
	public function getTaxonSupRang($rang) {
-
 
25
		$nom_sci = '';
-
 
26
		foreach ($this->infos['taxonsSup'] as $taxon) {
-
 
27
			if ($taxon['rang.code'] == 'bdnt.rangTaxo:'.$rang) {
-
 
28
				$nom_sci = $taxon['nom_sci_complet'];
-
 
29
			}
-
 
30
		}
-
 
31
		return $nom_sci;
-
 
32
	}
20
}
33
}
21
?>
34
?>
22
35