Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 575 | Go to most recent revision | Details | 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
 
15
	public function setId($id) {
16
		$this->id = $id;
17
	}
18
 
19
	public function setBdnt($bdnt){
20
		$this->bdnt = $bdnt;
21
	}
22
 
23
	public function setNum_nom($nn){
24
		$this->num_nom = $nn;
25
	}
26
 
27
	public function getInformations() {
28
		$url = $this->getUrlInformation();
29
		return $this->chargerDonnees($url);
30
	}
31
 
32
	public function getUrlInformation() {
33
		$tpl = Config::get('informationTpl');
34
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
35
		$url = $this->formaterUrl($tpl, $params);
36
		return $url;
37
	}
38
 
39
 
40
 
41
}