Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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
 
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
 
29
	public function getUrlInformation() {
30
		$tpl = Config::get('informationTpl');
31
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
32
		$url = $this->formaterUrl($tpl, $params);
33
		return $url;
34
	}
575 mathilde 35
 
542 mathilde 36
}