Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 636 Rev 778
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
	private $limite;
-
 
14
	private $depart;
-
 
15
	
-
 
16
	
-
 
17
	public function setDepart($depart){
-
 
18
		$this->depart = $depart;
-
 
19
	}
-
 
20
	
-
 
21
	public function setLimite($limite){
13
	
22
		$this->limite = $limite;
14
	
23
	}	
15
		
24
		
16
	public function setBdnt($bdnt){
25
	public function setBdnt($bdnt){
17
		$this->bdnt = $bdnt;
26
		$this->bdnt = $bdnt;
18
	}
27
	}
19
	
28
	
20
	public function setNum_nom($nn){
29
	public function setNum_nom($nn){
21
		$this->num_nom = $nn;
30
		$this->num_nom = $nn;
22
	}
31
	}
23
	
32
	
24
	public function getInformations() {	
33
	public function getInformations() {	
25
		$url = $this->getUrlInformation();
34
		$url = $this->getUrlInformation();
26
		return $this->chargerDonnees($url);
35
		return $this->chargerDonnees($url);
27
	}
36
	}
-
 
37
	
-
 
38
 
28
	
39
	
29
	public function getInformationsEcologie() {
40
	public function getInformationsEcologie() {
30
		$url = $this->getUrlInformation();
41
		$url = $this->getUrlInformation();
31
		$url .= '?categorie=ecologie';
42
		$url .= '?categorie=ecologie';
32
		return $this->chargerDonnees($url);
43
		return $this->chargerDonnees($url);
33
	}
44
	}
34
	
45
	
35
	public function getInformationsDescription() {
46
	public function getInformationsDescription() {
36
		$url = $this->getUrlInformation();
47
		$url = $this->getUrlInformation();
37
		$url .= '?categorie=description';
48
		$url .= '?categorie=description';
38
		return $this->chargerDonnees($url);
49
		return $this->chargerDonnees($url);
39
	}
50
	}
40
	
51
	
41
	public function getUrlInformation() {
52
	public function getUrlInformation() {
42
		$tpl = Config::get('informationTpl');
53
		$tpl = Config::get('informationTpl');
43
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
54
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
44
		$url = $this->formaterUrl($tpl, $params);
55
		$url = $this->formaterUrl($tpl, $params);
45
		return $url;
56
		return $url;
46
	}
57
	}
-
 
58
	
-
 
59
	public function getInformationsRelationCatminat() {
-
 
60
		$url = $this->getUrlInformationsRelationCatminat();
-
 
61
		return $this->chargerDonnees($url);
-
 
62
	}
-
 
63
	
-
 
64
	public function getUrlInformationsRelationCatminat() {
-
 
65
		$tpl = Config::get('informationsRelationCatminat');
-
 
66
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom, 'limite' => $this->limite, 'depart' => $this->depart  );
-
 
67
		$url = $this->formaterUrl($tpl, $params);
-
 
68
		return $url;
47
	
69
	}
48
	
70
	
49
 
71
 
50
}
72
}