Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 575 | Rev 636 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
542 mathilde 1
<?php
2
/**
3
 *
4
 * classe gérant des informations (descriptives, écologiques )
5
 *
6
 * @author mathilde SALTHUN-LASSALLE <mathilde@tela-botanica.org>
7
 *
8
 */
9
class Informations extends Eflore {
10
 
11
	private $bdnt;
12
	private $num_nom;
13
 
14
 
575 mathilde 15
 
542 mathilde 16
	public function setBdnt($bdnt){
17
		$this->bdnt = $bdnt;
18
	}
19
 
20
	public function setNum_nom($nn){
21
		$this->num_nom = $nn;
22
	}
23
 
24
	public function getInformations() {
25
		$url = $this->getUrlInformation();
26
		return $this->chargerDonnees($url);
27
	}
28
 
602 mathilde 29
	public function getInformationsEcologie() {
30
		$url = $this->getUrlInformation();
31
		$url .= '?champs=ecologie';
32
		return $this->chargerDonnees($url);
33
	}
34
 
35
	public function getInformationsDescription() {
36
		$url = $this->getUrlInformation();
37
		$url .= '?champs=description';
38
		return $this->chargerDonnees($url);
39
	}
40
 
542 mathilde 41
	public function getUrlInformation() {
42
		$tpl = Config::get('informationTpl');
43
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
44
		$url = $this->formaterUrl($tpl, $params);
45
		return $url;
46
	}
602 mathilde 47
 
48
 
575 mathilde 49
 
542 mathilde 50
}