Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 542 | Rev 602 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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